chat messages are now sent and relayed. server: handling host client leaving correctly

This commit is contained in:
2025-07-04 11:29:25 +02:00
parent f4a7fb722e
commit 4b4285ca99
5 changed files with 116 additions and 25 deletions
+12
View File
@@ -27,3 +27,15 @@ func leave_lobby(
"lobby_id": lobby_id,
"client_id": client_id,
})
func send_chat_message(
lobby_id: String,
client_id: String,
message: String,
) -> String:
return JSON.stringify({
"response": "send_chat_message",
"lobby_id": lobby_id,
"client_id": client_id,
"message": message,
})