Open yesitsfebreeze opened 2 years ago
This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Actually, does that mean that only one listener can be active at a time? I was struggling a bit because there's no removeListener
/removeAllListeners
exposed...
I've just tested and it seems that the subsequent calls to .on()
are ignored. For reference, I worked around it by binding via a proxy:
this.channel.on('spectating', (data: Data) => {
if (this._onSpectating)
this._onSpectating(data);
});
That's a bit more annoying than just being able to override the handler.
This issue is stale because it has been open 500 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Discussed in https://github.com/geckosio/geckos.io/discussions/202