This is a Redux middleware for handling single or multiple websocket. Websocket with redux maybe make you headake. So I create this module to help you.
yarn add redux-middleware-ws
online example:
<iframe src="https://codesandbox.io/embed/lrp134qv69" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>- [] add multiple example
https://medium.com/@ianovenden/redux-websocket-integration-c1a0d22d3189