I use @erebos/swarm-browser package in order to communicate with swarm in my app.
const client = new SwarmClient({ws: '...'});
When I restart swarm, erebos package throws an error Connection failed and it is not possible to continue work with app, in order to fix it I need to refresh the app.
Do you have any ideas how to implement automatic re-connection of SwarmClient
I use
@erebos/swarm-browserpackage in order to communicate with swarm in my app.When I restart swarm, erebos package throws an error
Connection failedand it is not possible to continue work with app, in order to fix it I need to refresh the app.Do you have any ideas how to implement automatic re-connection of
SwarmClient