SDK
SDK Dart Null Safety v3.x
2

count #

Returns the number of other connections sharing the same subscription.

Arguments #

Future<int> count(String roomId)
ArgumentTypeDescription
roomId
String
Subscription room ID

Return #

Returns the number of active connections using the same provided subscription room.

Usage #

final roomId = await kuzzle  .realtime  .subscribe(  'nyc-open-data',  'yellow-taxi',  {  'exists': 'name',  },  (notification) {  print(notification);  }); final result = await kuzzle  .realtime  .count(roomId);