function botEmit(nspComponents, obj, pubOpts) {
  if (!pubOpts) return false;
  const objFilter = nspComponents[pubOpts.filterIndex];
  return applyFilter(objFilter, obj[pubOpts.filterField]);
} // botEmit
/**
 * Returns true if this object should be emitted as a real-time event to a
 * namespace (representing a room) given the various filters passed in here
 * as nspComponents.
 *
 * @param {String} nspComponents - array of namespace strings for filtering
 * @param {Object} obj - Object that is to be emitted to the client
 * @param {Object} pubOpts - Options for client and channel to publish with.
 * @returns {Boolean} - true if this obj is to be emitted based on the filters
 *  represented by the nspComponents
 */
Returns true if this object should be emitted as a real-time event to a
namespace (representing a room) given the various filters passed in here
as nspComponents.

@param {String} nspComponents - array of namespace strings for filtering
@param {Object} obj - Object that is to be emitted to the client
@param {Object} pubOpts - Options for client and channel to publish with.
@returns {Boolean} - true if this obj is to be emitted based on the filters
represented by the nspComponents
Returns true if this object should be emitted as a real - time event to a namespace ( representing a room ) given the various filters passed in here as nspComponents . @param { String } nspComponents - array of namespace strings for filtering @param { Object } obj - Object that is to be emitted to the client @param { Object } pubOpts - Options for client and channel to publish with . @returns { Boolean } - true if this obj is to be emitted based on the filters represented by the nspComponents
function botEmit(nspComponents, obj, pubOpts) {
  if (!pubOpts) return false;
  const objFilter = nspComponents[pubOpts.filterIndex];
  return applyFilter(objFilter, obj[pubOpts.filterField]);
} 
function botEmit ( nspComponents , obj , pubOpts ) { if ( ! pubOpts ) return false ; const objFilter = nspComponents [ pubOpts . filterIndex ] ; return applyFilter ( objFilter , obj [ pubOpts . filterField ] ) ; }
Returns true if this object should be emitted as a real-time event to a
 namespace (representing a room) given the various filters passed in here
 as nspComponents.
Returns true if this object should be emitted as a real - time event to a namespace ( representing a room ) given the various filters passed in here as nspComponents .
// botEmit