Class: AnyCable::Rack::BinaryFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/anycable/rack/socket.rb

Overview

Wrapper for outgoing data used to correctly set the WS frame type

Instance Method Summary collapse

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_sObject



13
14
15
# File 'lib/anycable/rack/socket.rb', line 13

def to_s
  @data.to_s
end