Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

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

Open
miteshtagadiya opened this issue Feb 23, 2022 · 0 comments

Comments

@miteshtagadiya
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant