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.
  • Logger for jsonrpsee servers.
  • Various middleware implementations for RPC specific purposes.

Structs

Enums

Traits

Type Definitions

  • 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.
  • 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).