Skip to content

Commit 7e1f0e8

Browse files
committed
fix: 브라우저 탭 전환시에도 sse 연결을 취소하지 않도록 변경
1 parent 647aca3 commit 7e1f0e8

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)