Expand description
Contains useful WebSocket type aliases and a default WebSocket implementation of a
StreamParser.
Structs§
- Default
StreamParserimplementation for aWebSocket.
Functions§
- Connect asynchronously to a
WebSocketserver. - Process a payload of
Vec<u8>bytes by deserialising into anExchangeMessage. - Basic process for a
WebSocketCloseFrame message. Logs the payload attracelevel. - Basic process for a
WebSocketFrame message. Logs the payload attracelevel. - Basic process for a
WebSocketping message. Logs the payload attracelevel. - Basic process for a
WebSocketpong message. Logs the payload attracelevel. - Process a payload of
Stringby deserialising into anExchangeMessage.
Type Aliases§
- Convenient type alias for a tungstenite
WebSocketStream. - Communicative type alias for a tungstenite
WebSocketError. - Communicative type alias for a tungstenite
WebSocketMessage. - Convenient type alias for the
Sinkhalf of a tungsteniteWebSocket. - Convenient type alias for the
Streamhalf of a tungsteniteWebSocket.