Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/k6/latest/javascript-api/k6-x-mqtt/client/unsubscribe-async.md, or by sending Accept: text/markdown to https://grafana.com/docs/k6/latest/javascript-api/k6-x-mqtt/client/unsubscribe-async/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Client.unsubscribeAsync()
Unsubscribe from topics asynchronously.
Signature
await client.unsubscribeAsync(topics, options)Parameters
| Parameter | Type | Description |
|---|---|---|
| topics | string | string[] | Topic or array of topics to unsubscribe from |
| options | object | Optional unsubscribe configuration |
| options.tags | object | Custom tags for metrics (key-value pairs) |
Returns
A promise that resolves when the unsubscription is complete.
Was this page helpful?
Related resources from Grafana Labs

