npm.io
1.1.6 • Published 4 years ago

websocket-grpc

Licence
MIT
Version
1.1.6
Deps
2
Size
4 kB
Vulns
10
Weekly
0

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);

Keywords