Reconnect on page load
Closed this issue · 1 comments
bgins commented
Summary
Problem
On reloading the page or returning from the Fission Auth Lobby, the connection with Webnative will be dropped.
Impact
Some events may be missed and developers will need to reconnect with Webnative.
Solution
Store a flag to indicate connection state in extension storage. Check the flag and reconnect as needed.
bgins commented
Note that we implemented this without storing state about the connection in storage. We removed the start and stop listening buttons which removed the need to track connections. Instead, we can simply listen when the devtools are open and not otherwise.