Class: EM::WebSocketClient::WebSocketConnection
- Inherits:
-
Connection
- Object
- Connection
- EM::WebSocketClient::WebSocketConnection
- Defined in:
- lib/em-ws-client.rb
Instance Method Summary collapse
Instance Method Details
#client=(client) ⇒ Object
18 19 20 21 |
# File 'lib/em-ws-client.rb', line 18 def client=(client) @client = client @client.connection = self end |
#receive_data(data) ⇒ Object
23 24 25 |
# File 'lib/em-ws-client.rb', line 23 def receive_data(data) @client.receive_data data end |
#unbind(reason = nil) ⇒ Object
27 28 29 |
# File 'lib/em-ws-client.rb', line 27 def unbind(reason=nil) @client.disconnect end |