Crate actix_ws

Source
Expand description

WebSockets for Actix Web, without actors.

For usage, see documentation on handle().

Structs§

AggregatedMessageStream
Stream of messages from a WebSocket client, with continuations aggregated.
CloseReason
Reason for closing the connection
Closed
The error representing a closed websocket session
MessageStream
Stream of messages from a WebSocket client.
Session
A handle into the websocket session.
StreamingBody
Response body for a WebSocket.

Enums§

AggregatedMessage
WebSocket message with any continuations aggregated together.
CloseCode
Status code used to indicate why an endpoint is closing the WebSocket connection.
Item
A WebSocket continuation item.
Message
A WebSocket message.
ProtocolError
WebSocket protocol errors.

Functions§

handle
Begin handling websocket traffic