peerjs
peerjs copied to clipboard
'close' event on DataConnection is not emitted on Firefox
Hi, I'm testing some code that listens for the 'close' event on a DataConnection as follows:
connection.on('close', () =>
console.log('Connection closed.');
})
The problem only occurs when the peer that accepts the incoming connection is using Firefox and the one that initiates the DataConnection is using a chromium based browser. I am using the latest stable version 1.5.2. I have no idea what the problem might be but I'd be happy to share logs etc.
Thanks.