core/event_manager.js
function (event) {

	// check if connection object exists
	if (typeof event.conn === 'undefined') {
		LOG.error('no connection records, cannot respond to request', l_name);
		return false;
	}

	// if no mechanism to store (such as from a bot), just ignore
	// TODO: cleaner approach?
	if (event.conn.type !== 'socket' ||
    	event.conn.connector.queuedEvents === undefined) {
		return true;
	}

	var socket = event.conn.connector;

	// check if id exist
	if (socket.queuedEvents.hasOwnProperty(event.id) === false) {
		LOG.error('event not found. id = ' + event.id, l_name);
		LOG.stack();
		return false;
	}

	// remove current event from the socket's event queues
	delete socket.queuedEvents[event.id];

	return true;
}
function (event) {

	// check if connection object exists
	if (typeof event.conn === 'undefined') {
		LOG.error('no connection records, cannot respond to request', l_name);
		return false;
	}

	// if no mechanism to store (such as from a bot), just ignore
	// TODO: cleaner approach?
	if (event.conn.type !== 'socket' ||
    	event.conn.connector.queuedEvents === undefined) {
		return true;
	}

	var socket = event.conn.connector;

	// check if id exist
	if (socket.queuedEvents.hasOwnProperty(event.id) === false) {
		LOG.error('event not found. id = ' + event.id, l_name);
		LOG.stack();
		return false;
	}

	// remove current event from the socket's event queues
	delete socket.queuedEvents[event.id];

	return true;
}
function ( event ) { // check if connection object exists if ( typeof event . conn === 'undefined' ) { LOG . error ( 'no connection records, cannot respond to request' , l_name ) ; return false ; } // if no mechanism to store (such as from a bot), just ignore // TODO: cleaner approach? if ( event . conn . type !== 'socket' || event . conn . connector . queuedEvents === undefined ) { return true ; } var socket = event . conn . connector ; // check if id exist if ( socket . queuedEvents . hasOwnProperty ( event . id ) === false ) { LOG . error ( 'event not found. id = ' + event . id , l_name ) ; LOG . stack ( ) ; return false ; } // remove current event from the socket's event queues delete socket . queuedEvents [ event . id ] ; return true ; }
opposite of queueEvent
opposite of queueEvent