socket.io-redux
Redux middleware to emit actions to a socket.io server
API
Apply middleware
;; ; ; const store = ;
socketIO
receive asocket
instance created byio.connect(<url>)
.
Example action
const action = type: 'ADD_TODO' payload: message: 'Use socket.io-redux middleware' meta: socket: channel: 'add:todo' ;
meta.socket.channel
define the socket.io channel to use to emit the action.