Expand description
Transport abstraction layer for WebSocket backends.
Defines the backend-agnostic surface that higher layers in nautilus-network
consume (the reconnecting client, auth tracker, subscription manager, Python
bindings, and adapter crates):
Message: neutral WebSocket message enum.TransportError: neutral error type.WsTransport:StreamplusSinktrait for backend implementations.
The tokio-tungstenite backend is always compiled (its conversions and adapter
live in tungstenite). The sockudo-ws backend is gated behind the
transport-sockudo feature and lives in the sockudo submodule; when enabled
it can be selected at runtime via WebSocketConfig.backend.
Re-exports§
pub use error::TransportError;pub use message::CloseFrame;pub use message::Message;pub use stream::BoxedWsTransport;pub use stream::WsTransport;
Modules§
- error
- Neutral error type for the WebSocket transport abstraction.
- message
- Neutral WebSocket message types shared by all transport backends.
- sockudo
sockudo-wsbackend for the transport abstraction.- stream
- Backend-agnostic WebSocket transport trait.
- tungstenite
tokio-tungstenitebackend for the transport abstraction.