コード例 #1
0
 def __init__(self, address, source_address=None):
     super(WebSocketsClient, self).__init__(address, source_address)
     self.protocol = websockets.WebsocketsProtocol()
     self.client_nonce = None
コード例 #2
0
 def __init__(self):
     self.protocol = websockets.WebsocketsProtocol()
コード例 #3
0
 def __init__(self, connection, address, server):
     super(WebSocketsEchoHandler, self).__init__(connection, address,
                                                 server)
     self.protocol = websockets.WebsocketsProtocol()
     self.handshake_done = False