Module actix_http::ws [−][src]
WebSocket protocol support.
To setup a WebSocket, first do web socket handshake then on success convert Payload into a
WsStream stream and then use WsWriter to communicate with the peer.
Structs
| CloseReason | Reason for closing the connection |
| Codec | WebSocket protocol codec. |
| Dispatcher | |
| Parser | A struct representing a |
Enums
| CloseCode | Status code used to indicate why an endpoint is closing the |
| Frame | A WebSocket frame. |
| HandshakeError | WebSocket handshake errors |
| Item | A |
| Message | A WebSocket message. |
| OpCode | Operation codes as part of RFC6455. |
| ProtocolError | WebSocket protocol errors. |
Functions
| handshake | Verify |
| handshake_response | Create websocket handshake response |
| hash_key | |
| verify_handshake | Verify |