Crate jsonrpsee_server

source ·
Expand description

§jsonrpsee-server

jsonrpsee-server is a JSON RPC server that supports both HTTP and WebSocket transport.

Re-exports§

Modules§

  • Helpers.
  • HTTP related server functionality.
  • jsonrpsee-server middleware
  • WebSocket related server functionality.

Structs§

Enums§

Traits§

Functions§

  • Create a JSON-RPC error response.
  • Figure out if this is a sufficiently complete request that we can extract an Id out of, or just plain unparseable garbage.
  • Create channel to determine whether the server shall continue to run or not.

Type Aliases§

  • Similar to SyncMethod, but represents an asynchronous handler.
  • Connection ID, used for stateful protocol such as WebSockets. For stateless protocols such as http it’s unused, so feel free to set it some hardcoded value.
  • Connection permit.
  • Max response size.
  • Raw response from an RPC A tuple containing:
  • Type-alias for subscribers.
  • Method callback for subscriptions.
  • Subscription permit.
  • A MethodCallback is an RPC endpoint, callable with a standard JSON-RPC request, implemented as a function pointer to a Fn function taking four arguments: the id, params, a channel the function uses to communicate the result (or error) back to jsonrpsee, and the connection ID (useful for the websocket transport).