How to use the id function from ws
Find comprehensive JavaScript ws.id code examples handpicked from public code repositorys.
GitHub: gstockha/EGG-Server
![gstockha profile picture](/gstockha.png?size=40)
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);
+ 3 other calls in file