Dart 2.x

unsubscribe

Removes a subscription.

Arguments

Copied to clipboard!
Future<String> unsubscribe(String roomId)
Argument Type Description
roomid
String
Subscription room ID

Usage

Copied to clipboard!
final roomId = await kuzzle
  .realtime
  .subscribe(
    'nyc-open-data',
    'yellow-taxi',
    {},
    (notification) {
      print(notification);
  });
await kuzzle
  .realtime
  .unsubscribe(roomId);