bemson/subetha-client

No drop event for peers, when bridge is removed from DOM

bemson opened this issue · 0 comments

When the bridge's iframe is removed in the host page, the client is not notified their peers have dropped. The current workaround is to burden the client's disconnect event with tearing down peers.

The fix is to have the client simply fire drop events for any remaining peers before it's own disconnect event occurs. During these (fake) drop events, the client should have a forced "closing" state, in order to prevent reconnect or transmission attempts.