Expand description
WebSocket protocol support (RFC 6455).
This module provides:
- WebSocket handshake helpers (
Sec-WebSocket-Accept) - A minimal frame codec (mask/unmask, ping/pong/close, text/binary)
Design constraints for this project:
- No Tokio
- Minimal dependencies (implement SHA1 + base64 locally)
- Cancel-correct: all I/O is async and can be cancelled via asupersync
Structs§
Enums§
- OpCode
- WebSocket opcode.
- WebSocket
Error - WebSocket protocol error.
- WebSocket
Handshake Error - WebSocket handshake error.
Constants§
- WS_GUID
- The GUID used for computing
Sec-WebSocket-Accept.
Functions§
- websocket_
accept_ from_ key - Compute
Sec-WebSocket-AcceptfromSec-WebSocket-Key(RFC 6455).