redux-bolt-server

0.1.0 • Public • Published

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-server

You can also use yarn

yarn add redux-bolt-server

Usage

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.js

License

MIT

Dependents (0)

Package Sidebar

Install

npm i redux-bolt-server

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • vvinhas