grey-software / toonin

Technology that allows you to tune in to your friends and family in realtime using peer-to-peer sharing.
https://toonin.grey.software
MIT License
67 stars 6 forks source link

Update all RTC connections when root node disconnects #141

Closed Lakshya2610 closed 4 years ago

Lakshya2610 commented 4 years ago

Branch https://github.com/grey-software/toonin/tree/distributed-streaming-sys

Close RTC connection of immediate children when parent disconnects. This would recursively reset all clients as required.

This process should only be triggered after re-connection failure. When there is a connection failure, the first response of the node should be to re-connect. If the signalling server responds with "FAILURE" for the room (which means the root node(host) left), then reset all clients.

Lakshya2610 commented 4 years ago

Implemented in commit https://github.com/grey-software/toonin/commit/baac69c70186af7e96cc867b46068a43b09842ae . The root node notifies its immediate children of room close through RTC data channel. The children do the same for their children and so on and all the nodes are reset consequently.