angular-signalr-hub
angular-signalr-hub copied to clipboard
Unsubscribe proxy events
Hi,
It would be nice if there was method to unsubscribe events. There is: if (options && options.listeners) { Object.getOwnPropertyNames(options.listeners) .filter(function (propName) { return typeof options.listeners[propName] === 'function'; }) .forEach(function (propName) { Hub.on(propName, options.listeners[propName]); }); }
so would be nice to be able to do 'off' Yes, it's possible to do hub.proxy.off('broadcastMessage'); But maybe you will add something more elegant.