code | type | title |
---|---|---|
true |
page |
count |
Returns the number of other connections sharing the same subscription.
Due to the synchronous nature of the HTTP protocol, real-time messaging is not supported
{
"controller": "realtime",
"action": "count",
"body": {
"roomId": "unique room ID"
}
}
roomId
: subscription identifier, returned by Kuzzle during upon a successful subscription
Returns an object with the following properties:
count
: number of active connections using the same provided subscriptionroomId
: subscription identifier
{
"status": 200,
"error": null,
"index": null,
"collection": null,
"controller": "realtime",
"action": "count",
"requestId": "<unique request identifier>",
"result": {
"roomId": "<unique Kuzzle room identifier>",
"count": 3,
}
}