Class: Protocol::WebSocket::ContinuationFrame
- Defined in:
- lib/protocol/websocket/continuation_frame.rb
Overview
Represents a continuation frame that is sent or received by a WebSocket connection when a message is split into multiple frames.
Constant Summary collapse
- OPCODE =
0x0
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?, #flag?, #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.
15 16 17 |
# File 'lib/protocol/websocket/continuation_frame.rb', line 15 def apply(connection) connection.receive_continuation(self) end |