src/session.js
function init_session(req) {
	debug.assert(req.session).is('object');
	if(!is.obj(req.session.client)) {
		req.session.client = {};
	}
	if( (!is.obj(req.session.client.messages)) || is.array(req.session.client.messages) ) {
		req.session.client.messages = {};
	}
}
function init_session(req) {
	debug.assert(req.session).is('object');
	if(!is.obj(req.session.client)) {
		req.session.client = {};
	}
	if( (!is.obj(req.session.client.messages)) || is.array(req.session.client.messages) ) {
		req.session.client.messages = {};
	}
}
function init_session ( req ) { debug . assert ( req . session ) . is ( 'object' ) ; if ( ! is . obj ( req . session . client ) ) { req . session . client = { } ; } if ( ( ! is . obj ( req . session . client . messages ) ) || is . array ( req . session . client . messages ) ) { req . session . client . messages = { } ; } }
Initialize the session
Initialize the session