From fa14276d0a1da662bce15bdda22fd7bca3266d59 Mon Sep 17 00:00:00 2001 From: Rafi Date: Tue, 11 Apr 2023 10:30:12 +0800 Subject: [PATCH] Fix: Resending message when the visibility of the browser page changes , which causes slowdown or failure to receive messages --- components/Conversation.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/components/Conversation.vue b/components/Conversation.vue index 659e869..4e0389f 100644 --- a/components/Conversation.vue +++ b/components/Conversation.vue @@ -78,6 +78,7 @@ const fetchReply = async (message) => { 'Content-Type': 'application/json', }, body: JSON.stringify(data), + openWhenHidden: true, onopen(response) { if (response.ok && response.headers.get('content-type') === EventStreamContentType) { return;