lib/SocketServices.js
function SocketServices( options ){
	options = options || {};

	var self = this;

	this.logger = Logger.createLogger( 'socket', {'socket-services': VERSION}, options.logger );

	self.server = options.server || { };

	this.messageValidator = options.messageValidator || isCommunication;

	this.channel = options.channel || 'api';
	this.event = options.event || 'rester';

	self.logger.info('Will accepting communication on channel \'' + self.channel + '\' emitting to event \'' + self.event + '\'' );

	this.inflicter = new Inflicter( { logger: self.logger, idLength: options.idLength || 16 } );

	self.logger.info( 'Event system activated.' );
}
function SocketServices( options ){
	options = options || {};

	var self = this;

	this.logger = Logger.createLogger( 'socket', {'socket-services': VERSION}, options.logger );

	self.server = options.server || { };

	this.messageValidator = options.messageValidator || isCommunication;

	this.channel = options.channel || 'api';
	this.event = options.event || 'rester';

	self.logger.info('Will accepting communication on channel \'' + self.channel + '\' emitting to event \'' + self.event + '\'' );

	this.inflicter = new Inflicter( { logger: self.logger, idLength: options.idLength || 16 } );

	self.logger.info( 'Event system activated.' );
}
function SocketServices ( options ) { options = options || { } ; var self = this ; this . logger = Logger . createLogger ( 'socket' , { 'socket-services' : VERSION } , options . logger ) ; self . server = options . server || { } ; this . messageValidator = options . messageValidator || isCommunication ; this . channel = options . channel || 'api' ; this . event = options . event || 'rester' ; self . logger . info ( 'Will accepting communication on channel \'' + self . channel + '\' emitting to event \'' + self . event + '\'' ) ; this . inflicter = new Inflicter ( { logger : self . logger , idLength : options . idLength || 16 } ) ; self . logger . info ( 'Event system activated.' ) ; }
Creates the SocketServices instance
Creates the SocketServices instance