Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 2 of 2) sorted by relevance

/net-tools-3.7.0/
Dwebsocket-console.py11 def reader(ws): argument
13 print(ws.recv().strip("\n"))
17 ws = websocket.WebSocket() variable
18 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()
/net-tools-3.7.0/python-websocket-server/tests/
Dutils.py24 ws = create_connection("ws://{}:{}".format(*server.server_address))
25 yield ws, server
26 ws.close()