Module | FTW::WebSocket::Constants |
In: |
lib/ftw/websocket/constants.rb
lib/ftw/websocket/constants.rb |
The UUID comes from: tools.ietf.org/html/rfc6455#page-23
The opcode definitions come from: tools.ietf.org/html/rfc6455#section-11.8
WEBSOCKET_ACCEPT_UUID | = | "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" | websocket uuid, used in hash signing of websocket responses (RFC6455) | |
OPCODE_CONTINUATION | = | 0 | Indication that this frame is a continuation in a fragmented message See RFC6455 page 33. | |
OPCODE_TEXT | = | 1 | Indication that this frame contains a text message | |
OPCODE_BINARY | = | 2 | Indication that this frame contains a binary message | |
OPCODE_CLOSE | = | 8 | Indication that this frame is a ‘connection close’ message | |
OPCODE_PING | = | 9 | Indication that this frame is a ‘ping’ message | |
OPCODE_PONG | = | 10 | Indication that this frame is a ‘pong’ message | |
WEBSOCKET_ACCEPT_UUID | = | "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" | websocket uuid, used in hash signing of websocket responses (RFC6455) | |
OPCODE_CONTINUATION | = | 0 | Indication that this frame is a continuation in a fragmented message See RFC6455 page 33. | |
OPCODE_TEXT | = | 1 | Indication that this frame contains a text message | |
OPCODE_BINARY | = | 2 | Indication that this frame contains a binary message | |
OPCODE_CLOSE | = | 8 | Indication that this frame is a ‘connection close’ message | |
OPCODE_PING | = | 9 | Indication that this frame is a ‘ping’ message | |
OPCODE_PONG | = | 10 | Indication that this frame is a ‘pong’ message |