Crate bitconch_jsonrpc_ws_server

Source
Expand description

WebSockets server.

Re-exports§

pub extern crate bitconch_jsonrpc_core as jsonrpc_core;
pub extern crate hawk_ws as ws;
pub use self::server_utils::tokio;

Structs§

CloseHandle
A handle that allows closing of a server even if it owned by a thread blocked in wait.
Error
The Error type.
Host
Host type
NoopExtractor
Dummy metadata extractor
Origin
Request Origin
RequestContext
Request context
Sender
Output of WebSocket connection. Use this to send messages to the other endpoint.
Server
WebSockets server implementation.
ServerBuilder
Builder for WebSockets server

Enums§

DomainsValidation
Specifies if domains should be validated.
ErrorKind
The kind of an error.
MiddlewareAction
Request middleware action

Traits§

MetaExtractor
Metadata extractor from session data.
RequestMiddleware
Middleware to intercept server requests. You can either terminate the request (by returning a response) or just proceed with standard JSON-RPC handling.
SessionStats
Keeps track of open sessions

Type Aliases§

Result
Convenient wrapper around std::Result.
SessionId
Session id