Closed GlaireDaggers closed 6 years ago
Could also potentially make a change so that this also sets a state field on the client object on the JS side, so then you could also just check client.state without having to do an async poll.
Can you make sure everything is using spaces and formatted correctly? Thanks
Got it. Should be fixed now.
Thanks!
(This won't be available immediately as I need to bump the extension version number, update on store listing and update the GitHub release with the new helper, probably will happen on the weekend though)
This pull request would add support for subscribing to state changes by adding a new "stateChange" event type to the client.addEventListener function. As an example, this could be used to easily detect when a client has connected to a server without having to poll the client's state.