Clean up logic in react app by replacing calls to useEffect with regular functions. Instead of reacting to changes in variables, explicitly make calls to create the websocket connection when ready. This removes a lot of the "magic" from the way the code was behaving.
Summary of changes
yarn upgrade
Test plan
Tested by running