eclipse / paho.mqtt.javascript

paho.mqtt.javascript
Other
1.15k stars 467 forks source link

¿unsubscribe to everything? #229

Open jhonnattan123 opened 3 years ago

jhonnattan123 commented 3 years ago

in a single web app I have the problem that my socket keeps all the subscriptions connected and I need to close all of them, without knowing their url. how can I do it?

sectokia commented 3 years ago

You can unsubscribe from everything by simply issuing unsubscribe to '#' topic.