Edited test site and added ping

This commit is contained in:
Lucas
2024-03-09 20:13:43 -06:00
parent 0b97079cfd
commit 1a07501d53
2 changed files with 115 additions and 0 deletions

7
run.py
View File

@@ -89,6 +89,9 @@ def start_server_socket():
while True:
#print("HI")
# Handeling Server Requests Loop, will run forever
if not from_server_queue.empty():
client_id, message = from_server_queue.get()
fprint(f"Message from client {client_id}: {message}")
@@ -124,6 +127,10 @@ def start_server_socket():
elif call == "request":
fprint("")
case "ping":
fprint("Pong!!!")
# Lucas' notes
# Add a ping pong :) response/handler
# Add a get cable response/handler