miroslavpejic85 / mirotalksfu

🏆 WebRTC - SFU - Simple, Secure, Scalable Real-Time Video Conferences Up to 8k, compatible with all browsers and platforms.
https://sfu.mirotalk.com
GNU Affero General Public License v3.0
2.15k stars 340 forks source link

when connection lost wait 60sec before closing connection #107

Closed seemab-ahmed closed 1 year ago

seemab-ahmed commented 1 year ago

Hi can you add a feature like when internet gets disconnected it should wait for 1minute and saying message that "retrying to connect..." and if internet gets resolved in 60 second then it should continue else it should close the producer or consumer.

miroslavpejic85 commented 1 year ago

Hello @seemab40615,

If the server is away for some reason (updates and so on), i currently close all the producer and consumer transports on the client side as they are lost on server restart and redirect it to to http://sfu.mirotalk.com/newroom

What I can do, is to not redirect the client, but remain in the current room, trying to reconnect to the server until the server goes up, when the connection is established again, I will reload the page to rejoin again in the room.

In this way, you will not lose the connection and you will be in the same room as before.

miroslavpejic85 commented 1 year ago

Done, the client will be reconnected to the same room, when the server come back up.

client-wait-to-reconnect