diff --git a/front/src/Connexion/AxiosUtils.ts b/front/src/Connexion/AxiosUtils.ts index 9d50ce4f..f4cd160f 100644 --- a/front/src/Connexion/AxiosUtils.ts +++ b/front/src/Connexion/AxiosUtils.ts @@ -13,6 +13,12 @@ axiosWithRetry.defaults.raxConfig = { maxRetryAfter: 60_000, + statusCodesToRetry: [ + [100, 199], + [429, 429], + [501, 599], + ], + // You can detect when a retry is happening, and figure out how many // retry attempts have been made onRetryAttempt: (err) => { diff --git a/messages/protos/messages.proto b/messages/protos/messages.proto index 5b319feb..7a4d74d9 100644 --- a/messages/protos/messages.proto +++ b/messages/protos/messages.proto @@ -259,6 +259,9 @@ message BanUserMessage{ string message = 2; } +/** + * Messages going from back and pusher to the front + */ message ServerToClientMessage { oneof message { BatchMessage batchMessage = 1;