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

Copied to clipboard!

room.count(new ResponseListener<Integer>() {
  @Override
  public void onSuccess(Integer result) throws Exception {
    //  ...
  }

  @Override
  public void onError(JSONObject error) throws Exception {
    // Handle error
  }
});

Callback response

Copied to clipboard!
1