peers / peerjs

Simple peer-to-peer with WebRTC.
https://peerjs.com
MIT License
12.48k stars 1.43k forks source link

Error: ID is taken: when internet is disconnected and reconnected again. #294

Closed pratikraj26 closed 6 years ago

pratikraj26 commented 9 years ago

I got following error message when i try to connect to the peer server when the internet is reconnected after disconnection. I am using a custom peer id for the peer connection.

PeerJS: Socket open PeerJS: ERROR Aborting! PeerJS: ERROR Error: ID 323 is taken PeerJS: Socket closed. PeerJS: ERROR Error: Lost connection to server.

I think the server keeps the id for too long. Is there any way to forcefully destroy the connection with specific peer id ?

ghost commented 9 years ago

I would investigate the peer.destroy() method.

forrana commented 7 years ago

looks like dub of 224

LucaColombi commented 6 years ago

Same problem after 4 years, I suppose there is a maintainance problem :|

Is there a id timeout or a way to stimulate the real taken status of an ID?

kidandcat commented 6 years ago

duplicate of #224