queryLive static method

Future<OverMediaResponse> queryLive(
  1. P2PStream stream, {
  2. int? limit,
  3. int? offset,
  4. List<String>? tags,
})

Query live rooms

Implementation

static Future<OverMediaResponse> queryLive(
  P2PStream stream, {
  int? limit,
  int? offset,
  List<String>? tags,
}) async {
  return _send(stream, {
    'action': 'query_live',
    'params': {
      if (limit != null) 'limit': limit,
      if (offset != null) 'offset': offset,
      if (tags != null && tags.isNotEmpty) 'tags': tags,
    },
  });
}