Client.endAsync()
Disconnect from the broker asynchronously. Returns a promise that resolves when the disconnection is complete.
Signature
await client.endAsync(options)Parameters
Returns
A promise that resolves when the client is successfully disconnected.

