peerjs icon indicating copy to clipboard operation
peerjs copied to clipboard

'close' event on DataConnection is not emitted on Firefox

Open kaangiray26 opened this issue 1 year ago • 0 comments

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.

kaangiray26 avatar Feb 15 '24 22:02 kaangiray26