JSONRpc
json-rpc 2.0 client
Test
// to Start an json-rpc 2.0 server go run test/testServergo// do testnpm test
Install
npm i JSONRpc --save
Use
var JSONRpcClient = const client = 'localhost' 8080 client // Promise also supportasync { let ret = await client // 3 console} //Json-rpc over websocket//It will periodically call add function, and reseive every result from callbackclient //It will call add once client //Close the connectionclient