code: 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);
      }
docs: 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