Class: Protocol::WebSocket::PongFrame
- Defined in:
- lib/protocol/websocket/pong_frame.rb
Constant Summary collapse
- OPCODE =
0xA
Constants inherited from Frame
Frame::RESERVED, Frame::RSV1, Frame::RSV2, Frame::RSV3
Instance Attribute Summary
Attributes inherited from Frame
#finished, #flags, #length, #mask, #opcode, #payload
Instance Method Summary collapse
-
#apply(connection) ⇒ Object
Apply this frame to the specified connection.
Methods inherited from Frame
#<=>, #continued?, #control?, #data?, #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
Apply this frame to the specified connection.
14 15 16 |
# File 'lib/protocol/websocket/pong_frame.rb', line 14 def apply(connection) connection.receive_pong(self) end |