Searched refs:ws (Results 1 – 2 of 2) sorted by relevance
11 def reader(ws): argument13 print(ws.recv().strip("\n"))17 ws = websocket.WebSocket() variable18 ws.connect("ws://192.0.2.1/console")20 x = threading.Thread(target=reader, daemon=True, args=(ws,))27 ws.send(line + "\n")29 ws.close()
24 ws = create_connection("ws://{}:{}".format(*server.server_address))25 yield ws, server26 ws.close()