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§

  • The error type for I/O operations of the Read, Write, Seek, and associated traits.
  • Websocket configuration struct.
  • A Holochain websocket listener.
  • 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.
  • Respond to an incoming request.
  • 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§

  • Types of messages that can be received by a WebsocketReceiver.
  • The messages actually sent over the wire by this library. If you want to impliment your own server or client you will need this type or be able to serialize / deserialize it.

Functions§

  • Establish a new outgoing websocket connection to remote.

Type Aliases§