Module: Tep::WebSocket
- Defined in:
- lib/tep/websocket.rb,
lib/tep/websocket/frame.rb,
lib/tep/websocket/driver.rb,
lib/tep/websocket/handshake.rb,
lib/tep/websocket/connection.rb
Defined Under Namespace
Classes: Connection, ConnectionState, Driver, Event, Frame, Handler, Handshake, ParseResult
Constant Summary collapse
- OPCODE_CONTINUATION =
Standard opcodes.
0- OPCODE_TEXT =
1- OPCODE_BINARY =
2- OPCODE_CLOSE =
8- OPCODE_PING =
9- OPCODE_PONG =
10- CLOSE_NORMAL =
Close codes (RFC 6455 §7.4). Caller-facing ones only – the internal-error / protocol-error codes are emitted by the Driver directly, not exposed.
1000- CLOSE_GOING_AWAY =
1001- CLOSE_PROTOCOL_ERROR =
1002- CLOSE_UNSUPPORTED =
1003- CLOSE_INVALID_UTF8 =
1007- CLOSE_POLICY_VIOLATION =
1008- CLOSE_MESSAGE_TOO_BIG =
1009- DEFAULT_MAX_FRAME =
Frame-size cap. Configurable via Driver#set_max_frame_size; default is 16 MiB (large enough for any realistic chat / Action Cable payload, bounded so an oversized frame can be closed with 1009 rather than OOM-ing the worker).
16 * 1024 * 1024