This commit is contained in:
Laila van Reenen 2024-08-08 20:17:27 +02:00
parent 8a106c3717
commit 82fab1c7bf
Signed by: LailaTheElf
GPG Key ID: 1F4E6EE3E6DDF769
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ async def newClient(clientId, ws):
async def newBoat(boatId, name, ws):
boat = { "id": boatId, "name": name, "ws": ws, "state": "active" }
print("new client connected: " + boatId)
print("new boat connected: " + boatId)
for bo in boats:
if (bo['id'] == boat['id']):
bo['state'] = 'terminated'

View File

@ -29,7 +29,7 @@
var boatListEl = document.getElementById('boats');
var stickEl = document.getElementById('canvas');
var connection = new WebSocket('ws://' + "localhost" + ':8080/', ['mbcRcRf']);
var connection = new WebSocket('ws://' + "10.254.0.1" + ':8080/', ['mbcRcRf']);
connection.onopen = function ()
{