Skip to content

Commit 2d3a5bf

Browse files
Mohit TejaniMohit Tejani
authored andcommitted
set default value of restore and enableEventEngine to true
1 parent 8da3dca commit 2d3a5bf

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

dist/web/pubnub.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4068,7 +4068,7 @@
40684068
/**
40694069
* Whether PubNub client should catch up subscription after network issues.
40704070
*/
4071-
const RESTORE = false;
4071+
const RESTORE = true;
40724072
/**
40734073
* Whether network availability change should be announced with `PNNetworkDownCategory` and
40744074
* `PNNetworkUpCategory` state or not.
@@ -4089,7 +4089,7 @@
40894089
/**
40904090
* Whether subscription event engine should be used or not.
40914091
*/
4092-
const ENABLE_EVENT_ENGINE = false;
4092+
const ENABLE_EVENT_ENGINE = true;
40934093
/**
40944094
* Whether configured user presence state should be maintained by the PubNub client or not.
40954095
*/

dist/web/pubnub.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/interfaces/configuration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const USE_SSL = true;
1616
/**
1717
* Whether PubNub client should catch up subscription after network issues.
1818
*/
19-
const RESTORE = false;
19+
const RESTORE = true;
2020
/**
2121
* Whether network availability change should be announced with `PNNetworkDownCategory` and
2222
* `PNNetworkUpCategory` state or not.
@@ -37,7 +37,7 @@ const FILE_PUBLISH_RETRY_LIMIT = 5;
3737
/**
3838
* Whether subscription event engine should be used or not.
3939
*/
40-
const ENABLE_EVENT_ENGINE = false;
40+
const ENABLE_EVENT_ENGINE = true;
4141
/**
4242
* Whether configured user presence state should be maintained by the PubNub client or not.
4343
*/

lib/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2638,7 +2638,7 @@ declare namespace PubNub {
26382638
/**
26392639
* `true` to allow catch up on the front-end applications.
26402640
*
2641-
* @default `false`
2641+
* @default `true`
26422642
*/
26432643
restore?: boolean;
26442644
/**
@@ -2685,7 +2685,7 @@ declare namespace PubNub {
26852685
* param description in this table.
26862686
*
26872687
*
2688-
* @default `false`
2688+
* @default `true`
26892689
*/
26902690
enableEventEngine?: boolean;
26912691
/**

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/interfaces/configuration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const USE_SSL = true;
2323
/**
2424
* Whether PubNub client should catch up subscription after network issues.
2525
*/
26-
const RESTORE = false;
26+
const RESTORE = true;
2727

2828
/**
2929
* Whether network availability change should be announced with `PNNetworkDownCategory` and
@@ -49,7 +49,7 @@ const FILE_PUBLISH_RETRY_LIMIT = 5;
4949
/**
5050
* Whether subscription event engine should be used or not.
5151
*/
52-
const ENABLE_EVENT_ENGINE = false;
52+
const ENABLE_EVENT_ENGINE = true;
5353

5454
/**
5555
* Whether configured user presence state should be maintained by the PubNub client or not.
@@ -250,7 +250,7 @@ export type UserConfiguration = {
250250
/**
251251
* `true` to allow catch up on the front-end applications.
252252
*
253-
* @default `false`
253+
* @default `true`
254254
*/
255255
restore?: boolean;
256256

@@ -303,7 +303,7 @@ export type UserConfiguration = {
303303
* param description in this table.
304304
*
305305
*
306-
* @default `false`
306+
* @default `true`
307307
*/
308308
enableEventEngine?: boolean;
309309

0 commit comments

Comments
 (0)