Account Linking: Websocket reconnection strategy
Summary
Add a reconnection strategy to the account linking websocket channel.
Problem
The default implementation of account linking introduced in #335 opens a Websocket channel, but does handle cases where the websocket connection fails.
Impact
Account linking may be interrupted. On a failed connection, a user would have to start over.
Solution
Check for cases where the websocket connection closes before account linking is complete. We may need to implement a ping hearbeat to check the connection while account linking is in progress.
The reconnection strategy will be applied to this websocket:
https://github.com/fission-suite/webnative/blob/d69fce99533b312ef94544fbec3f6db7542c9fdb/src/auth/channel.ts#L32
We may want to see if we can write a generalized reconnection strategy that can be applied for other purposes.