I’m interested in what the best practices are for using websockets in larger applications. I understand that with react+flux the general suggestion is to stick them in middleware, but there isn’t really such a thing with Halogen (yet.) The approach that seems to make the most sense to me is to have the websocket be owned by the root component, and then have it make edits to either a halogen-store, mutuate local state, or distribute information to children. Does anyone have any suggestions?
I would also be very interested in hearing what the best practices might be with purescript-react-basic-hooks as well.