Open leolems opened 9 years ago
Great idea!
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 (mikehostetler/amplify#118) which makes the following possible:
amplify.unsubscribeAll(); // Unsubscribes all callbacks for all topics
amplify.unsubscribeAll('ButtonClicked'); // Unsubscribes all callbacks for a specific topic
Reference: https://github.com/mikehostetler/amplify/pull/118
in the core, add: To remove topics, i had a need for it, because i needed to reset