Files
socket.io/lib/store.js
2011-05-06 15:12:51 -07:00

56 lines
689 B
JavaScript

/*!
* socket.io-node
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var EventEmitter = process.EventEmitter;
/**
* Expose the constructor.
*/
exports = module.exports = Store;
/**
* Store interface
*
* @api public
*/
function Store () {};
/**
* Inherits from EventEmitter
*/
Store.prototype.__proto__ = EventEmitter.prototype;
/**
* Log accessor.
*
* @api public
*/
Store.prototype.__defineGetter__('log', function () {
return this.manager.log;
});
/**
* Client.
*
* @api public
*/
Store.Client = function (store, id) {
this.store = store;
this.id = id;
this.buffer = [];
this.dict = {};
};