An active Enhanced WebSocket subscription. Implements AsyncIterable for consuming notifications and provides an unsubscribe() method to clean up. Exiting a for await loop early (via break, return, or a thrown error) also unsubscribes.
AsyncIterable
unsubscribe()
for await
break
return
The server-assigned subscription ID.
Unsubscribe and stop receiving notifications.
An active Enhanced WebSocket subscription. Implements
AsyncIterablefor consuming notifications and provides anunsubscribe()method to clean up. Exiting afor awaitloop early (viabreak,return, or a thrown error) also unsubscribes.