fix bugs
This commit is contained in:
parent
8a106c3717
commit
82fab1c7bf
@ -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'
|
||||
|
||||
@ -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 ()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user