keep-network / tbtc-dapp

Deposit BTC and redeem TBTC
http://dapp.test.tbtc.network/
MIT License
33 stars 31 forks source link

Electrum client stops listening when OS sleeps #163

Open nkuba opened 4 years ago

nkuba commented 4 years ago

When waiting on an event (e.g. transaction confirmation) in an electrum client from WebSocket connection to electrum server if the OS goes to sleep the WS connection is not reconnected.

Shadowfiend commented 4 years ago

Thanks to URL state management, this is now fixable with a simple page reload.

That said, we should probably just notice when the connection closes and reopen it with exponential backoff if it wasn't closed via API.