saphir-webchaussette-server
v1.1.0
Published
WebSockets abstraction to be used with Saphir php framework.
Downloads
4
Maintainers
Readme
Saphir WebChaussette Server
WebSockets abstraction to be used with Saphir php framework on server side.
Installation
Download and install npm at www.npmjs.com/get-npm if you haven't already.
npm install saphir-webchaussette-server
This package is provided in CommonJS module format.
Usage
To use it, simply do :
var WebChaussetteServer = require('saphir-webchaussette-server');
var chaussette = new WebChaussetteServer();
chaussette.start(8080, 'secret_token');
You can define options for the redis server :
var WebChaussetteServer = require('saphir-webchaussette-server');
var chaussette = new WebChaussetteServer();
chaussette.start(8080, 'secret_token',
{
redisHost: '127.0.0.1',
redisPort: 6379,
redisDatabase: 0
});