callSendStats method

Future<SendStatsResponse> callSendStats(
  1. Context ctx,
  2. SendStatsRequest req
)

Implementation

Future<SendStatsResponse> callSendStats(twirp.Context ctx, SendStatsRequest req) async {
  try {
    Uri url = Uri.parse(baseUrl + prefix + 'stream.video.sfu.signal.SignalServer/SendStats');
    final data = await doJSONRequest(ctx, url, hooks, req);
    final SendStatsResponse res = SendStatsResponse.create();
    res.mergeFromProto3Json(json.decode(data));
    return Future.value(res);
  } catch (e) {
    rethrow;
  }
}