An active subscription that yields MqttMessages as they arrive.
Iterate it with for await; the loop ends when unsubscribe is called or the session closes. It is an AsyncDisposable, so await using unsubscribes automatically.
for await
AsyncDisposable
await using
1.0.0
Readonly
The topic filter this subscription matches.
Stops the subscription (UNSUBSCRIBE) and ends the iterator.
Resolves once the UNSUBACK is received.
An active subscription that yields MqttMessages as they arrive.
Iterate it with
for await; the loop ends when unsubscribe is called or the session closes. It is anAsyncDisposable, soawait usingunsubscribes automatically.Since
1.0.0