sendAppEvent auf RootInstance nicht möglich

Issue #68 invalid
Enrico Schultz created an issue

sendAppEvent kann nicht auf der RootInstance aufgerufen werden, auch wenn der Channel weiterhin offen ist.

this.onAppStart = function() {
  var ownInstance = KnuddelsServer.getAppAccess().getOwnInstance();
  var isRootInstance = ownInstance.isRootInstance();

  if (! isRootInstance) {
    // hier gibt es den Fehler
    ownInstance.getRootInstance().sendAppEvent('event', {});
  }
}

Comments (2)

  1. Log in to comment