Skip to content

Commit baa91b2

Browse files
committed
disconnect ws on window reload
1 parent 6352cd7 commit baa91b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/models/bundled-application-store/set-up-bundled-application-ws.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,8 @@ export const setUpBundledApplicationWs = (rootStore: RootStore, appcenterApi: Ap
6363
})
6464
)
6565
.subscribe((subSockets) => (websockets = subSockets))
66+
67+
window.onbeforeunload = function () {
68+
disconectAllWebSockets()
69+
}
6670
}

0 commit comments

Comments
 (0)