SDK
SDK Dart v1.x
2

# count

Returns the number of other connections sharing the same subscription.

# Arguments

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

# Return

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

# Usage

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