Skip to content

Commit 5349a5e

Browse files
authored
Merge pull request #21 from 2024-Iris/repository
f브라우저 탭 전환시에도 sse 연결을 유지
2 parents e7b3a26 + 7e1f0e8 commit 5349a5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ export default {
227227
headers: {
228228
'Authorization': `Bearer ${accessToken}`
229229
},
230+
keepalive: true,
230231
onopen(response) {
231232
if (response.ok && response.headers.get('content-type') === 'text/event-stream') {
232233
console.log('SSE connection opened.');

0 commit comments

Comments
 (0)