This MR improves performance when using channels by implementing the underlying session list with a Set instead of an array.
In addition, it updates the register and deregister methods to short-circuit if the session is already registered or deregistered, respectively and updates the automatic session deregistration to fire the session-disconnected event before the event is deregistered instead of after.
This MR improves performance when using channels by implementing the underlying session list with a
Set
instead of an array.In addition, it updates the
register
andderegister
methods to short-circuit if the session is already registered or deregistered, respectively and updates the automatic session deregistration to fire thesession-disconnected
event before the event is deregistered instead of after.