2 minutes offline when changing network interface

I have a working connection to a remoteit client running on a raspberry pi OS (set up with the one line setup) with both wired Ethernet and a 4G connection. Both connections are working fine and in linux, when I unplug the Ethernet cable, I am instantly online over 4G.
However, remoteit seems to be offline for 2 minutes until the connection is reestablished automatically. Is there a way I can reduce this time, so the connection is more reliable?
Running /usr/share/remoteit/connectd -n actually shows that the service is online also during the 2 minute offline period.
Is there a configuration file where this is set or how does these 2 minutes of offline time appear?

If you wrote a script which is doing the failover to the other network adapter quicker, then you would just put a restart command for remoteit there. For example:

sudo systemctl restart remoteit

I have now made this script, and it restarts everything quickly and nicely again. I can also directly after the restart make an ssh connection to the client again so it is really online.

But my Remoteit CLI connection between my server and the client is not coming back online before exactly 2 minutes and 15 seconds after the adapter changed. Is there a timeout in the connection setup for how fast it should try to reconnect, that I can decrease?

I suspect that the network adapter is not quite up when the CLI is starting up .
I didn’t know that you were using CLI in on the device. You likely can just do this instead of restarting remoteit.

remoteit agent stop
Then swap networks
remoteit agent start