1.1.1 • Published 4 years ago
websocket-jsonrpc v1.1.1
WebSocket-JSONRPC
基于WebSocket+JSONRPC+msgpack封装的实时通讯函数
安装
$ npm install websocket-jsonrpc
# or
yarn add websocket-jsonrpc
使用
const socket: SocketType = new Socket({ url: 'ws://url' });
socket.communicate({
method: 'sayhellosync',
callback: e => {
console.log(e);
},
});