websocket-grpc

1.1.6 • Public • Published

websocket-grpc

About

gRPC in websocket.

How use

npm

npm i websocket-grpc --save

yarn

yarn add websocket-grpc -S

example

const WsProto = require('websocket-grpc');
const wsproto = new WsProto();
const wsUrl="ws://127.0.0.1";
await wsproto.init(
      wsUrl,
      "./ws.proto",
      "ReqMsgUpload",
      "RespMsg"
    );
 const res = await wsproto.request(payload);
 console.log(res);

Package Sidebar

Install

npm i websocket-grpc

Weekly Downloads

0

Version

1.1.6

License

MIT

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • lanmeng2022