This module is built on top of zurfyx's implementation found (here)
npm i -D redux-socketio
or yarn i -D redux-socketio
import Socket from './services/socketio/index.js'
import {createStore, applyMiddleware} from 'redux'
import ioMiddleware from 'redux-socketio'
const SocketClient = new Socket()
const store = createStore(
...
applyMiddleware(ioMiddleware(SocketClient))
...
)
...
export default store
// Note passing middleware as the third argument requires redux@>=3.1.0
See wiki for more details
- Write tests
- Node.js support
- React-native support
Feel free to create PR for any of those tasks!
- Performance issues (#1)
MIT