Example #1
0
 def connect_ws(self):
     log.msg('WebSocket protocol has been selected. URL: {0}; HOST: {1}; PORT: {2};'.format(self.ws_url, self.ws_host, self.ws_port))
     factory = WebSocketFactory(self)
     factory.url  = self.ws_url
     factory.host = self.ws_host
     factory.port = self.ws_port
     factory.timestamp = self.server_time
     reactor.connectTCP(factory.host, factory.port, factory)
 def connect_ws(self):
     log.msg(
         'WebSocket protocol has been selected. URL: {0}; HOST: {1}; PORT: {2};'
         .format(self.ws_url, self.ws_host, self.ws_port))
     factory = WebSocketFactory(self)
     factory.url = self.ws_url
     factory.host = self.ws_host
     factory.port = self.ws_port
     factory.timestamp = self.server_time
     reactor.connectTCP(factory.host, factory.port, factory)