Closed vineus closed 1 year ago
Answering my own question: sessionDisconnected
is triggered after 40s.
Before that, sessionReconnecting
is triggered (and you can treat both as "disconnected", the main difference being that you need to reconnect the session manually when disconnected)
@vineus yes, the documentation is here: https://tokbox.com/developer/guides/connect-session/js/#automatic_reconnection
Version used:
"opentok-react": "0.11.0"
When I turn my internet connection off, I expect the
sessionDisconnected
to be triggered with a reasonnetworkDisconnected
according the docWhen I listen to the event from a session created with
createSession
:I can never see this event triggered when I change my wifi state from on to off (with a publisher stream created):
The opentok lib triggers lots of
ERR_INTERNET_DISCONNECTED
errors so it knows the connection is lost 😉Is this something I'm doing wrong here ?