count #
Returns the number of other connections sharing the same subscription.
Arguments #
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 #
final roomId = await kuzzle .realtime .subscribe( 'nyc-open-data', 'yellow-taxi', { 'exists': 'name', }, (notification) { print(notification); }); final result = await kuzzle .realtime .count(roomId);