diff --git a/lib/manager.ts b/lib/manager.ts index b78e9813..26f8ae3d 100644 --- a/lib/manager.ts +++ b/lib/manager.ts @@ -197,6 +197,12 @@ interface EngineOptions { * @default false */ withCredentials: boolean; + + /** + * Whether to automatically close the connection whenever the beforeunload event is received. + * @default true + */ + closeOnBeforeunload: boolean; } export interface ManagerOptions extends EngineOptions {