Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 645 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 645 Bytes

servant-jsonrpc

This module extends servant to make it easy to define JSON-RPC servers and clients.

Notes

  • Does not enforce the jsonrpc key in the response
  • Does not enforce id key on error responses
  • We allow for server messages with null for both error and result keys
  • The client interface hides the id key since the semantics of HTTP determine which server responses correspond to which client requests.

Examples

See the package ./servant-jsonrpc-example for client, server, and API definition examples.