Open HaleXie opened 4 years ago
We are encountering the sample problem in production.
@yuri1992 @HaleXie Are you able to reproduce it with the latest version of JS SDK 2.19.0?
I tried the following steps:
I was not able to get the error. Can you share your steps to reproduce, please?
Hey @enricop89, Try to enable the wifi after 60 seconds.
This how we reproduce the error:
@yuri1992 using @opentok/client 2.19.1
I am not seeing this error. After 60 seconds the session goes to the disconnected
state, so you won't be able to subscribe to a stream (therefore to trigger the error)
https://github.com/opentok/opentok-react/blob/02ed7bcfe1db3c456c51f4841ea2bfc4c3d6c335/src/OTSubscriber.js#L97
I see this error when a session is disconnected during a reconnecting
OTSubscriber:
Based the information on this page, this.state.session.subscribe() might return an undefined. I think we should check if the subscriber instance exists before setting up the event handlers.
https://tokbox.com/developer/sdks/js/reference/Session.html#subscribe