callIceRestart method

Future<ICERestartResponse> callIceRestart(
  1. Context ctx,
  2. ICERestartRequest req
)

Implementation

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