peerjs icon indicating copy to clipboard operation
peerjs copied to clipboard

Add timeout as option to dataconnection

Open DirkHeinke opened this issue 3 years ago • 1 comments

This will add a new option to the datachannel to enable a timeout function (#769).

This works by sending a special message every N seconds and automatically close the channel if the message from the other end was not received within N*2 seconds. The receiver does not emit the special message to the user.

This implementation works but nothing has been added to the documentation. After a maintainer confirms, that this is the right way to do it, I'll add documentation and tests.

DirkHeinke avatar Mar 06 '21 16:03 DirkHeinke

Is this still under development?

geniuskidkanyi avatar Jun 13 '22 05:06 geniuskidkanyi