server code with basic account stuff
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user