currently, clients don't get notified when a socket is setup (or fails), or the auth check succeeds, or fails.

we need to add something to allow module code to hook into this.

possible implementation:

(function ($) {

Drupal.Nodejs.connectionSetupHandler.myModuleConfigCheck = {
  connectionFailure: function (message) {
  },
  connectionSuccess: function (message) {
  },
  authFailure: function (message) {
  },
  authSuccess: function (message) {
  }
};

})(jQuery);

Comments

Anonymous’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit b675662 on 6.x-1.x, 7.x-1.x, drupalconlondon, auth-refactor, 8.x-1.x, 8.x-1.x-head by beejeebus:
    #1126758: allow clients to react to socket setup and auth message