lib/RtcConnector.js
function(topic, message) {
    /*
     * so should a filter manage the last message it has?  and give it an ID and store it... 
     * to prevent duplicates...
     * or should this filter do it...
     * this shold just execute 1 filter -- NO more than 1.  But if a topic matches
     * multiple filters then we need to call one filter and mark it dirty or something
     *
     * maybe save the lastMessage w/ a timestamp and if it matches, then skip it... 
     *
     * given topic A that matches 2 filters so there will be 2 messages... 
     *
     *
     * return number of matches...
     * 
     *
     */

    for( var key in myFilters) {
      if (myFilters.hasOwnProperty(key)) {
        myFilters[key].doFilter(topic,message) ;
      }
    }
    // count is how many times filter ran... 
  }
function(topic, message) {
    /*
     * so should a filter manage the last message it has?  and give it an ID and store it... 
     * to prevent duplicates...
     * or should this filter do it...
     * this shold just execute 1 filter -- NO more than 1.  But if a topic matches
     * multiple filters then we need to call one filter and mark it dirty or something
     *
     * maybe save the lastMessage w/ a timestamp and if it matches, then skip it... 
     *
     * given topic A that matches 2 filters so there will be 2 messages... 
     *
     *
     * return number of matches...
     * 
     *
     */

    for( var key in myFilters) {
      if (myFilters.hasOwnProperty(key)) {
        myFilters[key].doFilter(topic,message) ;
      }
    }
    // count is how many times filter ran... 
  }
function ( topic , message ) { /*
     * so should a filter manage the last message it has?  and give it an ID and store it... 
     * to prevent duplicates...
     * or should this filter do it...
     * this shold just execute 1 filter -- NO more than 1.  But if a topic matches
     * multiple filters then we need to call one filter and mark it dirty or something
     *
     * maybe save the lastMessage w/ a timestamp and if it matches, then skip it... 
     *
     * given topic A that matches 2 filters so there will be 2 messages... 
     *
     *
     * return number of matches...
     * 
     *
     */ for ( var key in myFilters ) { if ( myFilters . hasOwnProperty ( key ) ) { myFilters [ key ] . doFilter ( topic , message ) ; } } // count is how many times filter ran... 
 }
doFilter - Execute the filter callbacks for the topic passed
@private
@param {String} topic  Topic name to filter
@param {String} message Message to pass
doFilter - Execute the filter callbacks for the topic passed