Skip to content

Commit a271969

Browse files
authored
Ensure streaming connection remains open even when page is hidden (#82)
1 parent c77b71b commit a271969

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/components/Teams/ChatTeam.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ const ChatTeam = () => {
298298
const headers = await getHeaders(OpenAPI, requestOptions)
299299

300300
await fetchEventSource(url, {
301+
openWhenHidden: true,
301302
method: requestOptions.method,
302303
headers,
303304
body: JSON.stringify(body),

0 commit comments

Comments
 (0)