core/conn.js
function Connection (type, sender, from) {
	
	// provide default 'from' values
	from = from || {};
	
	// connection-specific UUID
	this.connID = UTIL.createUUID();
	
	// a project-specific / supplied name (can be account or app name)
	this.name = '';

	// sender function associated with this connection
	this.connector = sender;
	
	// store pointers on how to respond
	this.type = type;
	
	// where the connection comes from (default to nothing)
	this.host = from.host || '';
	this.port = from.port || 0;

	// time when this connection is established
	this.time =	new Date();
	
	// append cookie, if available (this is useful if the event will be relayed to another server to execute,
	// cookie can then be preserved
	if (from.cookie)
		this.cookie = from.cookie;
}
function Connection (type, sender, from) {
	
	// provide default 'from' values
	from = from || {};
	
	// connection-specific UUID
	this.connID = UTIL.createUUID();
	
	// a project-specific / supplied name (can be account or app name)
	this.name = '';

	// sender function associated with this connection
	this.connector = sender;
	
	// store pointers on how to respond
	this.type = type;
	
	// where the connection comes from (default to nothing)
	this.host = from.host || '';
	this.port = from.port || 0;

	// time when this connection is established
	this.time =	new Date();
	
	// append cookie, if available (this is useful if the event will be relayed to another server to execute,
	// cookie can then be preserved
	if (from.cookie)
		this.cookie = from.cookie;
}
function Connection ( type , sender , from ) { // provide default 'from' values from = from || { } ; // connection-specific UUID this . connID = UTIL . createUUID ( ) ; // a project-specific / supplied name (can be account or app name) this . name = '' ; // sender function associated with this connection this . connector = sender ; // store pointers on how to respond this . type = type ; // where the connection comes from (default to nothing) this . host = from . host || '' ; this . port = from . port || 0 ; // time when this connection is established this . time = new Date ( ) ; // append cookie, if available (this is useful if the event will be relayed to another server to execute, // cookie can then be preserved if ( from . cookie ) this . cookie = from . cookie ; }
definition for a connection object
definition for a connection object