rpc method

  1. @override
Future<Rpc> rpc({
  1. required Session session,
  2. required String id,
  3. String? payload,
})
override

Implementation

@override
Future<Rpc> rpc({
  required model.Session session,
  required String id,
  String? payload,
}) async {
  _session = session;

  final res = await _api.nakamaRpcFunc(id: id, body: payload);

  return Rpc()..mergeFromProto3Json(res.body!.toJson());
}