Expand description
Server-side JSON-RPC implementation
Traitsยง
- Request
Handler - Asynchronous trait implementing a handler for incoming JSON-RPC requests.
Functionsยง
- accept
- Accept function that should run inside a loop for accepting incoming
JSON-RPC requests and passing them to the
RequestHandler. - handle_
request ๐ - Auxiliary function to handle a request in the background.
- listen_
and_ serve - Start a JSON-RPC server bound to the givven accept URL and use the
given
RequestHandlerto handle incoming requests. - run_
accept_ ๐loop - Wrapper function around
accept()to take the incoming connection and pass it forward.