server code with basic account stuff

This commit is contained in:
2026-07-28 18:31:54 +02:00
parent 6eb37f137c
commit 4a5ff08afc
4 changed files with 497 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env python
from websockets.sync.client import connect
def hello():
uri = "ws://localhost:30341"
with connect(uri) as ws:
while True:
greeting = ws.recv()
print(f"<<< {greeting}")
cmd = input(">>> ")
ws.send(cmd)
# print(f">>> {name}")
if __name__ == "__main__":
hello()