rejectRequest method
Implementation
rejectRequest({
required int id,
String message = "Reject by the user",
}) {
final response = JsonRpcErrorResponse(
id: id,
error: JsonRpcError.serverError(message),
);
_encryptAndSend(jsonEncode(response.toJson()));
}