artico icon indicating copy to clipboard operation
artico copied to clipboard

Reconnect Call Connection Signal

Open stephenprogramscoffee opened this issue 7 months ago • 1 comments

Hi, is there a way to reconnect call connection of user A and user B on network restoration after either of them lost signal?

Edit: As I was testing I noticed when a peer / user disconnects from the internet, it seems like call.on('close') is triggered. Does this mean, the call is destroyed? If so, how will we reconnect 2 peers / users to the call?

stephenprogramscoffee avatar May 23 '25 02:05 stephenprogramscoffee

Hi @stephenprogramscoffee! Sorry for the delayed response. That is a great question!

Unfortunately, as it is, Artico is simply a wrapper around WebRTC APIs, in order to make it easier to use.

Reconnecting two users is an application level problem, and therefore you'd have to implement it yourself.

One possible way to do it is to connect to the signaling server and request the same peer ID, after your connection is back online. Then somehow force the peers to reconnect with each other.

Nonetheless, since we provide a default signaling and client implementation, we could consider adding a reconnection mechanism to that. It might take some time for me to get to that, but will happily accept PRs.

Let me know if that makes sense. Or open to any other suggestions you might have.

matallui avatar Jul 28 '25 18:07 matallui