Skip to content

Commit 35d27df

Browse files
fix(typings): add missing closeOnBeforeunload option (#1469)
1 parent c8dfbb1 commit 35d27df

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/manager.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ interface EngineOptions {
123123
* Are we only interested in transports that support binary?
124124
*/
125125
onlyBinaryUpgrades: boolean;
126-
126+
127127
/**
128128
* Timeout for xhr-polling requests in milliseconds (0) (only for polling transport)
129-
*/
129+
*/
130130
requestTimeout: number;
131131

132132
/**
@@ -197,6 +197,12 @@ interface EngineOptions {
197197
* @default false
198198
*/
199199
withCredentials: boolean;
200+
201+
/**
202+
* Whether to automatically close the connection whenever the beforeunload event is received.
203+
* @default true
204+
*/
205+
closeOnBeforeunload: boolean;
200206
}
201207

202208
export interface ManagerOptions extends EngineOptions {

0 commit comments

Comments
 (0)