I have a wall application using WebRTC DataChannels. In the code I've managed to work out the connection, but I'm not getting notified when a peer disconnects. On the channels I have the following listeners:
channels[uid].onerror = function( event ) {
console.log( 'channels[uid].onerror', uid, arguments )
removePeer( uid )
}
channels[uid].onclose = function() {
console.log( 'channels[uid].onclose', uid, arguments )
removePeer( uid )
}
When I reload tabs disconnecting peers, I don't get close messages. When I send to them, I don't get an error.