node-jsonrpc2 icon indicating copy to clipboard operation
node-jsonrpc2 copied to clipboard

JSON-RPC 2.0 server and client library, with HTTP (with Websocket support) and TCP endpoints

Results 21 node-jsonrpc2 issues
Sort by recently updated
recently updated
newest added

If the internet gets disconnected on the server or the client does this library provide an automatic way to restart/reconnect everything cleanly?

When receiving an invalid json string, catch the json error generated and transmit to callback.

How could i create Node.js RPC server, that would recieve JSON data, and show the newly added data on frontend side for every client?

Hi, according http://www.jsonrpc.org/specification , error json field should have code: `{"code": -32601, "message": "Method not found"}` , how can get this code from response? Now you only return message.

headers['Content-Type'] = 'application/json';

on the server : ```server.listenRaw(56667, '10.0.0.5')``` on the client : ```Client.$create(56667, '127.0.0.1').connectSocket(cb)``` The server refuses connection, but cb is never called.

is there a way to add a cookie in headers ? i tried to overwrite " authHeader function " but it did not work :(

http://www.jsonrpc.org/specification#batch To send several Request objects at the same time, the Client MAY send an Array filled with Request objects.

hacktoberfest

Edit WS seriaalization. Success response without field "error". Error response without field "result".