for (var key in this.listeners) {
    if (this.listeners.hasOwnProperty(key)) {
      this.connection.on(key, this.listeners[key]);
    }
  }