Class Faye::WebSocket::HybiParser
In: lib/faye/websocket/hybi_parser/stream_reader.rb
lib/faye/websocket/hybi_parser/handshake.rb
lib/faye/websocket/hybi_parser.rb
Parent: Object

Methods

close   create_handshake   frame   handshake_response   new   open?   parse   ping   version  

Classes and Modules

Class Faye::WebSocket::HybiParser::Handshake
Class Faye::WebSocket::HybiParser::StreamReader

Constants

BYTE = 0b11111111
FIN = MASK = 0b10000000
RSV1 = 0b01000000
RSV2 = 0b00100000
RSV3 = 0b00010000
OPCODE = 0b00001111
LENGTH = 0b01111111
OPCODES = { :continuation => 0, :text => 1, :binary => 2, :close => 8, :ping => 9, :pong => 10
FRAGMENTED_OPCODES = OPCODES.values_at(:continuation, :text, :binary)
OPENING_OPCODES = OPCODES.values_at(:text, :binary)
ERRORS = { :normal_closure => 1000, :going_away => 1001, :protocol_error => 1002, :unacceptable => 1003, :encoding_error => 1007, :policy_violation => 1008, :too_large => 1009, :extension_error => 1010, :unexpected_condition => 1011
ERROR_CODES = ERRORS.values

Attributes

protocol  [R] 

Public Class methods

Public Instance methods

[Validate]