glint-socket-io
v1.0.2
Published
socket io module for express and browser. this module needs to be installed an used as middleware on the main express app.
Downloads
2
Readme
glint-socket-io
socket io module for express and browser. this module needs to be installed an used as middleware on the main express app.
install
npm install glint-socket-io
use
This Module is part of glintcms. Please see the documentation for more info.
use on main express server
var Adapter = require('glint-adapter');
var fsa = require('glint-adapter-fs')();
var sessionAdapter = Adapter(fsa).db('glint').type('session');
var sessionStore = require('glint-session')(app, sessionAdapter);
var io = require('glint-socket-io')(server, sessionStore);
use in browser
var io = window.io = require('glint-socket-io').io;
var socket = window.socket = require('glint-socket-io')();
test
npm test
license
MIT
sponsored by intesso