Expand description
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§
- Close
Reason - Reason for closing the connection
- Codec
- WebSockets protocol codec
- Dispatcher
- Parser
- A struct representing a
WebSocketframe.
Enums§
- Close
Code - Status code used to indicate why an endpoint is closing the
WebSocketconnection. - Frame
WebSocketframe- Handshake
Error - Websocket handshake errors
- Item
WebSocketcontinuation item- Message
WebSocketMessage- OpCode
- Operation codes as part of rfc6455.
- Protocol
Error - Websocket protocol errors
Functions§
- handshake
- Verify
WebSockethandshake request and create handshake reponse. - handshake_
response - Create websocket’s handshake response
- hash_
key - verify_
handshake - Verify
WebSockethandshake request.