Improve the detection of a disconnected peer to update the user list with the WebRTC service

This commit is contained in:
Yann Flory
2016-03-14 15:20:00 +01:00
parent 77e7fb5724
commit 3a188625e0
3 changed files with 8 additions and 18 deletions

View File

@@ -281,10 +281,6 @@ define([
onPeerMessage(peerId, type, wc);
};
window.onunload = function() {
wc.leave();
};
// Open a Chainpad session
realtime = createRealtime();