How to use the id function from ws
Find comprehensive JavaScript ws.id code examples handpicked from public code repositorys.
GitHub: gstockha/EGG-Server
89 90 91 92 93 94 95 96 97 98
clients[id].socket.send(msg); } function receiver(ws, json) { const tag = json.tag; const id = ws.id; switch (tag) { case tags["JOINED"]: //joined const assignedID = (clients[json.prefID] || !json.prefID) ? getID(json.prefID) : json.prefID; initClient(ws, assignedID, json.name);
0
0
1
+ 3 other calls in file