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
in the core, add:
To remove topics, i had a need for it, because i needed to reset
//================================================
// custom function LLS
//================================================
removeTopic: function(topic) {
if ( typeof topic !== "string" ) {
throw new Error( "You must provide a valid topic to remove it." );
}
for(var name in subscriptions) {
if (name === topic) {
delete subscriptions[topic];
break;
}
}
}
The text was updated successfully, but these errors were encountered:
leolems
changed the title
Not an issue, a suggestion...
Not an issue, a suggestion... for pubsub
Jun 3, 2015
We use amplify to build Wire for Web and also needed a solution to unsubscribe all callbacks for a specific topic. That's why I created a Pull Request (#118) which makes the following possible:
amplify.unsubscribeAll();// Unsubscribes all callbacks for all topicsamplify.unsubscribeAll('ButtonClicked');// Unsubscribes all callbacks for a specific topic
in the core, add:
To remove topics, i had a need for it, because i needed to reset
The text was updated successfully, but these errors were encountered: