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§
- Connect
Request - A request to connect to a websocket server.
- Error
- The error type for I/O operations of the
Read,Write,Seek, and associated traits. - Websocket
Config - Websocket configuration struct.
- Websocket
Listener - A Holochain websocket listener.
- Websocket
Receiver - 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.
- Websocket
Respond - Respond to an incoming request.
- Websocket
Sender - 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§
- Receive
Message - Types of messages that can be received by a WebsocketReceiver.
- Websocket
Error - An error produced when working with websockets.
- Wire
Message - 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
Resulttype for I/O operations. - Websocket
Result - A result type, with the error type WebsocketError.