count #
Returns the number of subscribers in the room.
count(callback) #
Arguments | Type | Description |
---|---|---|
callback | function | Callback handling the response |
Callback Response #
Returns an integer
containing the number of users subscribing to this room.
Usage #
// Using callbacks (NodeJS or Web Browser)
room.count(function (error, result) {
// ...
});
// Using promises (NodeJS)
room.countPromise().then(result => {
// ...
});
Callback response
1
Edit this page on Github(opens new window)