Module: FTW::WebSocket::Constants

Included in:
Rack, Writer
Defined in:
lib/ftw/websocket/constants.rb

Overview

The UUID comes from: tools.ietf.org/html/rfc6455#page-23

The opcode definitions come from: tools.ietf.org/html/rfc6455#section-11.8

Constant Summary collapse

WEBSOCKET_ACCEPT_UUID =

websocket uuid, used in hash signing of websocket responses (RFC6455)

"258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
OPCODE_CONTINUATION =

Indication that this frame is a continuation in a fragmented message See RFC6455 page 33.

0
OPCODE_TEXT =

Indication that this frame contains a text message

1
OPCODE_BINARY =

Indication that this frame contains a binary message

2
OPCODE_CLOSE =

Indication that this frame is a ‘connection close’ message

8
OPCODE_PING =

Indication that this frame is a ‘ping’ message

9
OPCODE_PONG =

Indication that this frame is a ‘pong’ message

10