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.
30 31 32 |
# File 'lib/faye/websocket/client.rb', line 30 def parent @parent end |
Instance Method Details
#connection_completed ⇒ Object
32 33 34 |
# File 'lib/faye/websocket/client.rb', line 32 def connection_completed parent.__send__(:on_connect) end |
#receive_data(data) ⇒ Object
36 37 38 |
# File 'lib/faye/websocket/client.rb', line 36 def receive_data(data) parent.__send__(:parse, data) end |
#unbind ⇒ Object
40 41 42 |
# File 'lib/faye/websocket/client.rb', line 40 def unbind parent.__send__(:finalize, '', 1006) end |
#write(data) ⇒ Object
44 45 46 |
# File 'lib/faye/websocket/client.rb', line 44 def write(data) send_data(data) rescue nil end |