Skip to content

Commit

Permalink
fix(typings): add missing closeOnBeforeunload option (#1469)
Browse files Browse the repository at this point in the history
  • Loading branch information
javiergonzalezGenially authored and darrachequesne committed May 17, 2021
1 parent c8dfbb1 commit 35d27df
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ interface EngineOptions {
* Are we only interested in transports that support binary?
*/
onlyBinaryUpgrades: boolean;

/**
* Timeout for xhr-polling requests in milliseconds (0) (only for polling transport)
*/
*/
requestTimeout: number;

/**
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 35d27df

Please sign in to comment.