Open omidbachari opened 8 years ago
https://github.com/mojotech/standup-web/blob/master/src/helpers/socket.js Using a custom redux middleware to map socket events to redux actions
No. I would just use socket listeners directly in the component. Doing a redux middleware would only be helpful if you need to store state that you get back from a socket message
Just remember to clean up the listeners on componentWillUnmount
https://github.com/bigardone/phoenix-trello