code: function (reason, offendingMessage) {
      var self = this;
      var msg = {msg: 'error', reason: reason};
      if (offendingMessage)
        msg.offendingMessage = offendingMessage;
      self.send(msg);
    }
docs: Send a connection error.