Skip to content

Commit

Permalink
adding delay to let the server breathe
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyNadd committed Dec 14, 2024
1 parent 05dc26e commit 4c4929d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class="ml-2 text-red-500 hover:text-red-700 focus:outline-none"
}
// Fonction pour démarrer la mise à jour automatique des messages
function startAutoRefresh(intervalTime = 500) {
function startAutoRefresh(intervalTime = 2000) {
if (interval) clearInterval(interval);
interval = setInterval(() => {
if (currentChatId) loadChat(currentChatId, null, null, false);
Expand Down

0 comments on commit 4c4929d

Please sign in to comment.