commander: update ws login
This commit is contained in:
parent
27b3f114f0
commit
bbdbed5c25
@ -58,7 +58,9 @@
|
|||||||
|
|
||||||
function onOpen(e)
|
function onOpen(e)
|
||||||
{
|
{
|
||||||
conn.send(passEl.value);
|
conn.send(passEl.value + ";4675;" + Math.floor(new Date().getTime()/1000.0));
|
||||||
|
reqBoats();
|
||||||
|
reqClients();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMessage(e)
|
function onMessage(e)
|
||||||
@ -88,6 +90,11 @@
|
|||||||
conn.send(passEl.value + ";boats");
|
conn.send(passEl.value + ";boats");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reqClients()
|
||||||
|
{
|
||||||
|
conn.send(passEl.value + ";clients");
|
||||||
|
}
|
||||||
|
|
||||||
function addBoats(boats)
|
function addBoats(boats)
|
||||||
{
|
{
|
||||||
boats = boats.split(':');
|
boats = boats.split(':');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user