Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2667,6 +2667,18 @@ declare namespace PubNub {
* @default `false`
*/
autoNetworkDetection?: boolean;

/**
* If the browser fails to detect the network changes from Wi-Fi to LAN and vice versa, or you
* get reconnection issues, set the flag to `false`. This allows the SDK reconnection logic to
* take over.
*
* **Note:** This option is available only in the **browser** environment.
*
* @default `true`
*/
listenToBrowserNetworkEvents?: boolean;

/**
* Whether to use the standardized workflows for subscribe and presence.
*
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions src/core/interfaces/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,17 @@ export type UserConfiguration = {
*/
autoNetworkDetection?: boolean;

/**
* If the browser fails to detect the network changes from Wi-Fi to LAN and vice versa, or you
* get reconnection issues, set the flag to `false`. This allows the SDK reconnection logic to
* take over.
*
* **Note:** This option is available only in the **browser** environment.
*
* @default `true`
*/
listenToBrowserNetworkEvents?: boolean;

/**
* Whether to use the standardized workflows for subscribe and presence.
*
Expand Down
Loading