0.1.0 • Published 8 years ago
redux-bolt-server v0.1.0
Redux Bolt (Server Event Handler)
This package provides a SocketIO callback to handle Redux Bolt events on the server side. Check the package page for more details.
WIP
This package is under heavy development. Don't use it in a production environment unless you really know what you're doing.
Installation
To install the stable version of redux-bolt-server using NPM:
npm run --save redux-bolt-serverYou can also use yarn
yarn add redux-bolt-serverUsage
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
Debug
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.jsLicense
MIT