port und so
This commit is contained in:
14
scripts/accessWss.py
Normal file
14
scripts/accessWss.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import websocket
|
||||
import json
|
||||
import ssl
|
||||
|
||||
websocket.enableTrace(True)
|
||||
|
||||
ws = websocket.create_connection(
|
||||
"wss://localhost:3000",
|
||||
sslopt={"cert_reqs": ssl.CERT_NONE}
|
||||
)
|
||||
|
||||
ws.send(json.dumps({"type": "gcode", "cmd": "G0 x104"}))
|
||||
|
||||
ws.close()
|
||||
Reference in New Issue
Block a user