• General
  • Is there a way to unsubscribe all subscriptions of a client at once ?

You can easily unsubscribe from all items at once using the following code:

for (const sub of client.getSubscriptions()) {
  client.unsubscribe(sub);
}