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.
72 73 74 |
# File 'lib/faye/websocket/client.rb', line 72 def parent @parent end |
Instance Method Details
#connection_completed ⇒ Object
74 75 76 |
# File 'lib/faye/websocket/client.rb', line 74 def connection_completed parent.__send__(:on_connect) end |
#receive_data(data) ⇒ Object
78 79 80 |
# File 'lib/faye/websocket/client.rb', line 78 def receive_data(data) parent.__send__(:parse, data) end |
#unbind ⇒ Object
82 83 84 |
# File 'lib/faye/websocket/client.rb', line 82 def unbind parent.__send__(:finalize, '', 1006) end |
#write(data) ⇒ Object
86 87 88 |
# File 'lib/faye/websocket/client.rb', line 86 def write(data) send_data(data) rescue nil end |