lib/Connection.js
function(hostName) {
      var t = this, testHost = hostName.toLowerCase(),
          myHostName = t.get('hostName'), remoteHostName = t.get('remoteHostName');
      myHostName = myHostName && myHostName.toLowerCase();
      remoteHostName = remoteHostName && remoteHostName.toLowerCase();
      return (testHost === myHostName || testHost ===  remoteHostName);
    }
function(hostName) {
      var t = this, testHost = hostName.toLowerCase(),
          myHostName = t.get('hostName'), remoteHostName = t.get('remoteHostName');
      myHostName = myHostName && myHostName.toLowerCase();
      remoteHostName = remoteHostName && remoteHostName.toLowerCase();
      return (testHost === myHostName || testHost ===  remoteHostName);
    }
function ( hostName ) { var t = this , testHost = hostName . toLowerCase ( ) , myHostName = t . get ( 'hostName' ) , remoteHostName = t . get ( 'remoteHostName' ) ; myHostName = myHostName && myHostName . toLowerCase ( ) ; remoteHostName = remoteHostName && remoteHostName . toLowerCase ( ) ; return ( testHost === myHostName || testHost === remoteHostName ) ; }
Is this connection with the specified host?

@method isThisHost
@protected
@param hostName {String} The host name to check
@return withHost {Boolean} True if the connection is with this host
Is this connection with the specified host?