unsubscribe #
Removes a subscription.
Arguments #
Future<void> unsubscribe(String roomId)
Argument | Type | Description |
---|---|---|
roomid | String | Subscription room ID |
Usage #
final roomId = await kuzzle
.realtime
.subscribe(
'nyc-open-data',
'yellow-taxi',
{},
(notification) {
print(notification);
});
await kuzzle
.realtime
.unsubscribe(roomId);
Edit this page on Github(opens new window)