Send first presence message to *all* clients

This commit is contained in:
arne 2024-01-27 12:27:53 +01:00
commit c4d32068f8

View file

@ -29,10 +29,8 @@ const server = Bun.serve<WebsocketData>({
others: clients.size,
})
for (const [uuid, client] of clients.entries()) {
if (uuid !== ws.data.clientId) {
client.send(enterNotice, true)
}
}
},
message(ws, message) {
// broadcast message to all other clients