You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm finding a way to support global interceptor for websockets like http interceptor.
Like this:
if (options && options.methods) {
angular.forEach(options.methods, function (method) {
Hub[method] = function () {
var args = $.makeArray(arguments);
args.unshift(method);
alert('display loading...');
return Hub.invoke.apply(Hub, args);
// How to handle promise after method done or fail ?
};
});
}
Anyway to solve this without handle in controller ?
The text was updated successfully, but these errors were encountered:
Hi, I'm finding a way to support global interceptor for websockets like http interceptor.
Like this:
Anyway to solve this without handle in controller ?
The text was updated successfully, but these errors were encountered: