Module | EventMachine::WebSocket::Framing05 |
In: |
lib/em-websocket/framing05.rb
|
MAXIMUM_FRAME_LENGTH | = | 10 * 1024 * 1024 | Set the max frame lenth to very high value (10MB) until there is a limit specified in the spec to protect against malicious attacks | |
FRAME_TYPES | = | { :continuation => 0, :close => 1, :ping => 2, :pong => 3, :text => 4, :binary => 5 | ||
FRAME_TYPES_INVERSE | = | FRAME_TYPES.invert | ||
DATA_FRAMES | = | [:text, :binary, :continuation] | Frames are either data frames or control frames |