Expand description
Concrete stream newtypes for the multiplexed WS surface.
These replace the Pin<Box<dyn Stream<Item = ...>>> aliases used in the
0.1 trait. The receiver channel is an implementation detail; the public
surface is Stream<Item = T> and a direct recv().await shortcut for
hot-path callers that want to avoid Stream combinators entirely.
Structs§
- Session
Stream - Connection-level events. Separate from
UpdateStreamso one reconnect is one event regardless of how many markets are subscribed. - Update
Stream - Multiplexed per-market update stream. There is exactly one
UpdateStreamper dispatcher; callingOrderBookWebSocket::updates()twice returnsNonethe second time. - WsDispatcher
- Producer handle held by exchange WS implementations. Owns the sender halves of both channels so the implementation can emit updates and session events directly.
- WsDispatcher
Config - Configuration for the dispatcher’s bounded channels.