Class: Protocol::WebSocket::BinaryFrame
- Defined in:
- lib/protocol/websocket/binary_frame.rb
Constant Summary collapse
- OPCODE =
0x2
Instance Attribute Summary
Attributes inherited from Frame
#finished, #length, #mask, #opcode, #payload
Instance Method Summary collapse
Methods inherited from Frame
#<=>, #continued?, #control?, #finished?, #initialize, #pack, parse_header, read, #to_ary, #unpack, #write
Constructor Details
This class inherits a constructor from Protocol::WebSocket::Frame
Instance Method Details
#apply(connection) ⇒ Object
32 33 34 |
# File 'lib/protocol/websocket/binary_frame.rb', line 32 def apply(connection) connection.receive_binary(self) end |
#data? ⇒ Boolean
28 29 30 |
# File 'lib/protocol/websocket/binary_frame.rb', line 28 def data? true end |