Class: EventMachine::WebSocketClient::WebSocketConnection

Inherits:
EM::Connection
  • Object
show all
Defined in:
lib/em-ws-client/client.rb

Overview

Internal: Wrapper

Instance Method Summary collapse

Instance Method Details

#client=(client) ⇒ Object



28
29
30
31
# File 'lib/em-ws-client/client.rb', line 28

def client=(client)
  @client = client
  @client.socket = self
end

#receive_data(data) ⇒ Object



33
34
35
# File 'lib/em-ws-client/client.rb', line 33

def receive_data(data)
  @client.receive_data data
end

#unbind(reason = nil) ⇒ Object



37
38
39
# File 'lib/em-ws-client/client.rb', line 37

def unbind(reason=nil)
  @client.unbind
end