This package provides a SocketIO callback to handle Redux Bolt events on the server side. Check the package page for more details.
This package is under heavy development. Don't use it in a production environment unless you really know what you're doing.
To install the stable version of redux-bolt-server using NPM:
npm run --save redux-bolt-server
You can also use yarn
yarn add redux-bolt-server
After requiring the package, you'll use the boltCallback function as a callback for io.on connection event.
var bolt = require('redux-bolt-server')
io.on('connection', bolt.eventsHandler)After that, you can start emiting events to the server using redux-bolt
This package provides an easy way to debug all your Bolt Events using the debug package.
To do so, you must start your service setting DEBUG to bolt, like so:
DEBUG=bolt node server.js
MIT