Class: AnyCable::Rack::BinaryFrame
- Inherits:
-
Object
- Object
- AnyCable::Rack::BinaryFrame
- Defined in:
- lib/anycable/rack/socket.rb
Overview
Wrapper for outgoing data used to correctly set the WS frame type
Instance Method Summary collapse
-
#initialize(data) ⇒ BinaryFrame
constructor
A new instance of BinaryFrame.
- #to_s ⇒ Object
Constructor Details
#initialize(data) ⇒ BinaryFrame
Returns a new instance of BinaryFrame.
9 10 11 |
# File 'lib/anycable/rack/socket.rb', line 9 def initialize(data) @data = data end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/anycable/rack/socket.rb', line 13 def to_s @data.to_s end |