Skip to main content

Module transport

Module transport 

Source
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):

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-ws backend for the transport abstraction.
stream
Backend-agnostic WebSocket transport trait.
tungstenite
tokio-tungstenite backend for the transport abstraction.