callSendAnswer method

Future<SendAnswerResponse> callSendAnswer(
  1. Context ctx,
  2. SendAnswerRequest req
)

Implementation

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