This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.
Client.publishAsync()
Publish a message asynchronously. Returns a promise that resolves when the message is published.
Signature
await client.publishAsync(topic, payload, options)Parameters
Returns
A promise that resolves when the message is successfully published.

