Send first presence message to *all* clients
This commit is contained in:
parent
8ccb60de61
commit
c4d32068f8
1 changed files with 1 additions and 3 deletions
|
|
@ -29,10 +29,8 @@ 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) {
|
||||||
// broadcast message to all other clients
|
// broadcast message to all other clients
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue