sz-json-rpc
JSON-RPC that works on browser.
Installation
$ npm install sz-json-rpc --save
Example
- Using json-rpc adapter to send requests.
var webSocket = 'ws://localhost:5000';var ws = ;ws;ws;window { ws;}
- Using connector to do some tricks like auto reconect, queue requests when socket isn't ready and dispatch when it is live.
const conn = ; window { if conn conncurSocket;}