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