This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.
Client.subscribeAsync()
Subscribe to topics asynchronously. Returns a promise that resolves when the subscription is complete.
Signature
await client.subscribeAsync(topic, options)Parameters
Returns
A promise that resolves when the subscription is successfully completed.

