Hacker News new | ask | show | jobs
by jon-wood 3412 days ago
It surprises me getting it to work with React and Redux was a struggle, they seem like the perfect tools to handle a stream of state updates coming in realtime. You could practically dispatch client side events straight from the websocket stream to update local state.
2 comments

almost commented the same thing earlier. i was surprised how manual adding multiplayer support was for redux/react.

the solution was still pretty simple, for my app: 1. middleware that sends all actions to a server 2. websocket client that dispatches actions when they receive them. this works, but doesn't actually reconcile or keep data on the server which isn't suitable for most applications.

anyway yeah, i was surprised there was no robust or standard library...

The problem was more the frequency of updates, than the integration.

I don't know, after working a year with Redux, it never grew onto me. Always felt clunky :\