lib/em-ws-client/client.rb
def connect
      EM.connect @uri.host, @uri.port || 80, WebSocketConnection do |conn|
        conn.client = self
        conn.send_data(@handshake.request)
      end
    end
def connect
      EM.connect @uri.host, @uri.port || 80, WebSocketConnection do |conn|
        conn.client = self
        conn.send_data(@handshake.request)
      end
    end
Internal: Connect to the remote host and synchonize the socket
 and this client object