1.1.6 • Published 3 years ago
websocket-grpc v1.1.6
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);