Colyseus: Calling `broadcast()` during `onJoin()` is ignoring the new client

Created on 26 Aug 2019  路  3Comments  路  Source: colyseus/colyseus

Reported by @damian-pastorini

bug

All 3 comments

I would say is ignoring the current client so:

```
onJoin(()=>{
this.broadcast // will never reach this client
}

Any update on status of this bug?

@finkton1 a workaround, for now, is to also call this.send(client, /* data */) along with this.broadcast() to include the joining client to receive that message, I'm going to post an update here when this gets fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zgz682000 picture zgz682000  路  5Comments

endel picture endel  路  5Comments

endel picture endel  路  4Comments

darkyen picture darkyen  路  6Comments

oyed picture oyed  路  7Comments