Hacker News new | comments | show | ask | jobs | submit login
Show HN: React-socket (github.com)
7 points by mesteche on Mar 19, 2017 | hide | past | web | favorite | 5 comments

It looks like this is your own project. It would likely be better posted as a "Show HN" if it meets the guidelines:


Thanks, I wasn't aware of that.

Hi, I created a helper for those who want to use websocket with react. The goal was to facilitate usage of websockets with react and redux, but redux is not required. Tell me what you think.

It's "redux inspired" but doesn't actually integerate with redux?

Yes...and no. It should work well with redux and react-redux, there is an example in the README to use react-redux's connect to dispatch an action when a message is received from the server. On the other hand, I didn't want redux or react-redux to be dependencies. So it can also be used without redux.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact