node-jsonrpc2
node-jsonrpc2 copied to clipboard
JSON-RPC 2.0 server and client library, with HTTP (with Websocket support) and TCP endpoints
First of all congrats for this great extension! Trying to send some details about the error to the client, I found out that the "error" field in response is automatically...
when server answer success - reponse have field "error" when server answer error - response have field "result" > **result** > This member is REQUIRED on success. > This member...
To the implementators and extensions POV, refactoring a standard way using promises in those methods increase testability, interop and easier integrations. It also decouples the functionality that is currently ingrained...
http://www.jsonrpc.org/specification#parameter_structures If present, parameters for the rpc call MUST be provided as a Structured value. Either by-position through an Array or by-name through an Object
The authHandler now is agnostic of the synchronous / callback / promise implementation styles. Documentation only provides examples for the synchronous parts. Make visible the fact that the handler can...
If possible, get rid of mock tests, and test the real deal. Also improve coverage
Ditto
The client and server methods should support promises. I hit this while I was writing the tests for the Cookie and JWT Authorization Feature. Calling a method on the server...
Hello @pocesar, We would like to be able to specify different types of authorization, like Bearer Token or Cookie. How can we specify these types of authentication headers in the...