opentok / opentok-react

React components for OpenTok.js
https://www.npmjs.com/package/opentok-react
MIT License
107 stars 105 forks source link

How can we show network disconnected message to both connected users? #219

Open miteshtagadiya opened 2 years ago

miteshtagadiya commented 2 years ago

We have implemented opentok react and added publisher and subscriber events, When current users disable the network(internet) then they can see the message Connection lost, reconnecting(We have added a code to show this using subscriber disconnected event), but another user should also be shown a message that the opposite user's connection is lost they are trying to connect.

The issue is we have 2 connected users, the second user has a strong internet connection, and the first user is connected on the session and his network is disconnected due to some reason, So using subscriber disconnect event for the first user we can show a message Connection lost, reconnecting, but on second user side we are not getting any event that is dispatched on first user's network disconnect, the second user should also see the message that there is an issue on first user's side not on their own side. Which event can I use to show the message on the second user's side and how?