You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the documentation for State.Disconnected, it briefly describes the status field and says "Always null for Javascript target." However I see it as null sometimes on Android as well, and it's not clear what that means.
I do see one place in the code where it goes to null. I would argue that Unknown would be a better option here, since it indicates we don't know why it disconnected. I can reproduce that consistently by just unplugging the device the phone is connected to.
The text was updated successfully, but these errors were encountered:
Ya, Unknown is more explicit than null for representing that we don't have a connection state yet.
Will try to find some time soon to drop null as a potential state (and update the documentation accordingly).
Looking at the documentation for State.Disconnected, it briefly describes the
status
field and says "Always null for Javascript target." However I see it asnull
sometimes on Android as well, and it's not clear what that means.I do see one place in the code where it goes to null. I would argue that
Unknown
would be a better option here, since it indicates we don't know why it disconnected. I can reproduce that consistently by just unplugging the device the phone is connected to.The text was updated successfully, but these errors were encountered: