Expand description
WebSockets protocol support
Re-exports§
pub use crate::ws::CloseCode;pub use crate::ws::CloseReason;pub use crate::ws::Frame;pub use crate::ws::Message;pub use crate::ws::WsSink;
Functions§
- start
- Start websocket service handling Frame messages with automatic control/stop logic, including the chosen subprotocol in the response.
- start_
with - Start websocket service handling raw
DispatchItemmessages requiring manual control/stop logic, including the chosen subprotocol in the response. - subprotocols
- Returns an iterator over the subprotocols requested by the client
in the
Sec-Websocket-Protocolheader.