callIceTrickle method

Future<ICETrickleResponse> callIceTrickle(
  1. Context ctx,
  2. ICETrickle req
)

Implementation

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