WebSocket JSON-RPC Client
Javascript library implements JSON-RPC protocol for WebSockets
Installation
npm install --save websocket-rpc-client
Usage
Connecting
; var params = url: 'ws://url_to_ws_server/' reconnectTimeout: 5000 reconnectCount: 2 WSstartparams
Send Data
// send a request of format {id:1, method: "signIn", params: {"username":"username", "password":"password"}} WS
Subscribe on events
WS;
Unsubscribe on events
WS