Moving the connect() code and the callback-related stuff into SeashellWebsocket allows the Compiler and Storage to easily tell when the websocket is connected. Also allows some simplification of the code.
This is (hopefully) close to the final version of the interface the React code will see.
Moving the connect() code and the callback-related stuff into SeashellWebsocket allows the Compiler and Storage to easily tell when the websocket is connected. Also allows some simplification of the code.
This is (hopefully) close to the final version of the interface the React code will see.