We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c00d83 commit e8524b4Copy full SHA for e8524b4
1 file changed
vue3-app/src/components/TrameApp.js
@@ -105,8 +105,10 @@ export default {
105
106
// Attach lifecycles
107
trame.client?.getRemote()?.Trame?.lifeCycleUpdate("client_connected");
108
- window.addEventListener("beforeunload", () =>
109
- trame.client?.getRemote()?.Trame?.lifeCycleUpdate("client_exited")
+ window.addEventListener("beforeunload", () => {
+ trame.client?.getRemote()?.Trame?.lifeCycleUpdate("client_exited");
110
+ trame.client?.getConnection()?.getSession()?.close();
111
+ }
112
);
113
114
// Handle router if available
0 commit comments