Class: Faye::WebSocket::Stream

Inherits:
RackStream show all
Defined in:
lib/faye/websocket.rb

Instance Method Summary collapse

Methods inherited from RackStream

#clean_rack_hijack, #close_connection, #close_connection_after_writing, #each, #hijack_rack_socket, #initialize, #write

Constructor Details

This class inherits a constructor from Faye::RackStream

Instance Method Details

#failObject


97
98
99
# File 'lib/faye/websocket.rb', line 97

def fail
  @socket_object.__send__(:finalize_close)
end

#receive(data) ⇒ Object


101
102
103
# File 'lib/faye/websocket.rb', line 101

def receive(data)
  @socket_object.__send__(:parse, data)
end