def __init__(self, address, source_address=None): super(WebSocketsClient, self).__init__(address, source_address) self.protocol = websockets.WebsocketsProtocol() self.client_nonce = None
def __init__(self): self.protocol = websockets.WebsocketsProtocol()
def __init__(self, connection, address, server): super(WebSocketsEchoHandler, self).__init__(connection, address, server) self.protocol = websockets.WebsocketsProtocol() self.handshake_done = False