Skip to content

vvinhas/redux-bolt-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

⚡️ A simple callback for SocketIO Server to handle Redux-Bolt events

Resources

License

Stars

Watchers

Forks

Packages

No packages published