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,9 +29,7 @@ const server = Bun.serve<WebsocketData>({
others: clients.size, others: clients.size,
}) })
for (const [uuid, client] of clients.entries()) { for (const [uuid, client] of clients.entries()) {
if (uuid !== ws.data.clientId) { client.send(enterNotice, true)
client.send(enterNotice, true)
}
} }
}, },
message(ws, message) { message(ws, message) {