Crate holochain_websocket

Crate holochain_websocket 

Source
Expand description

Holochain websocket support library. This is currently a thin wrapper around tokio-tungstenite that provides rpc-style request/responses via u64 message ids.

Structs§

ConnectRequest
A request to connect to a websocket server.
Error
The error type for I/O operations of the Read, Write, Seek, and associated traits.
WebsocketConfig
Websocket configuration struct.
WebsocketListener
A Holochain websocket listener.
WebsocketReceiver
Receive signals and requests from a websocket connection. Note, This receiver must be polled (recv()) for responses to requests made on the Sender side to be received. If this receiver is dropped, the sender side will also be closed.
WebsocketRespond
Respond to an incoming request.
WebsocketSender
Send requests and signals to the remote end of this websocket connection. Note, this receiver side must be polled (recv()) for responses to requests made on this sender to be received.

Enums§

ReceiveMessage
Types of messages that can be received by a WebsocketReceiver.
WebsocketError
An error produced when working with websockets.
WireMessage
The messages actually sent over the wire by this library. If you want to implement your own server or client you will need this type or be able to serialize / deserialize it.

Functions§

connect
Establish a new outgoing websocket connection to remote.

Type Aliases§

Result
A specialized Result type for I/O operations.
WebsocketResult
A result type, with the error type WebsocketError.