diff --git a/src/config/socket-io.config.ts b/src/config/socket-io.config.ts
index 17c037f..ff2613a 100644
--- a/src/config/socket-io.config.ts
+++ b/src/config/socket-io.config.ts
@@ -124,6 +124,11 @@ export interface SocketIoConfig {
     extraHeaders?: {
       [header: string]: string;
     };
+
+    /**
+     * decide whether to trigger disconnect event when reloading the page or not
+     * */
+    closeOnBeforeunload?: boolean;
     
     // Additional options for NodeJS Engine.IO clients omitted: https://socket.io/docs/client-api/
   };