pomelo
Version:
Pomelo is a fast, scalable game server framework for [node.js](http://nodejs.org). It provides the basic development framework and many related components, including libraries and tools. Pomelo is also suitable for real-time web applications; its distri
14 lines (10 loc) • 474 B
JavaScript
var BackendSessionService = require('../common/service/backendSessionService');
module.exports = function(app) {
var service = new BackendSessionService(app);
service.name = '__backendSession__';
// export backend session service to the application context.
app.set('backendSessionService', service, true);
// for compatibility as `LocalSession` is renamed to `BackendSession`
app.set('localSessionService', service, true);
return service;
};