Module: Faye::WebSocket::Client::Connection
- Defined in:
- lib/faye/websocket/client.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
43 44 45 |
# File 'lib/faye/websocket/client.rb', line 43 def parent @parent end |
Instance Method Details
#connection_completed ⇒ Object
45 46 47 |
# File 'lib/faye/websocket/client.rb', line 45 def connection_completed parent.__send__(:on_connect) end |
#receive_data(data) ⇒ Object
49 50 51 |
# File 'lib/faye/websocket/client.rb', line 49 def receive_data(data) parent.__send__(:parse, data) end |
#unbind ⇒ Object
53 54 55 |
# File 'lib/faye/websocket/client.rb', line 53 def unbind parent.__send__(:finalize, '', 1006) end |
#write(data) ⇒ Object
57 58 59 |
# File 'lib/faye/websocket/client.rb', line 57 def write(data) send_data(data) rescue nil end |