Skip to content

Commit 1ac3c26

Browse files
author
Devendra
committed
[fixes #70878506 develop javascript] changed timestamp in fake here now events
1 parent 7babc70 commit 1ac3c26

21 files changed

Lines changed: 108 additions & 108 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.6.6
1+
3.6.7

core/pubnub-common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ function PN_API(setup) {
792792
function(uid) { presence( {
793793
'action' : 'join',
794794
'uuid' : uid,
795-
'timestamp' : rnow(),
795+
'timestamp' : Math.floor(rnow() / 1000),
796796
'occupancy' : here['occupancy'] || 1
797797
}, here, channel ); } );
798798
}

modern/pubnub.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.6.6
1+
// Version: 3.6.7
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -12,7 +12,7 @@ var NOW = 1
1212
, PARAMSBIT = '&'
1313
, PRESENCE_HB_THRESHOLD = 5
1414
, PRESENCE_HB_DEFAULT = 30
15-
, SDK_VER = '3.6.6'
15+
, SDK_VER = '3.6.7'
1616
, REPL = /{([\w\-]+)}/g;
1717

1818
/**
@@ -793,7 +793,7 @@ function PN_API(setup) {
793793
function(uid) { presence( {
794794
'action' : 'join',
795795
'uuid' : uid,
796-
'timestamp' : rnow(),
796+
'timestamp' : Math.floor(rnow() / 1000),
797797
'occupancy' : here['occupancy'] || 1
798798
}, here, channel ); } );
799799
}
@@ -2522,7 +2522,7 @@ THE SOFTWARE.
25222522
* UTIL LOCALS
25232523
*/
25242524
var NOW = 1
2525-
, PNSDK = 'PubNub-JS-' + 'Modern' + '/' + '3.6.6'
2525+
, PNSDK = 'PubNub-JS-' + 'Modern' + '/' + '3.6.7'
25262526
, XHRTME = 310000;
25272527

25282528

modern/pubnub.min.js

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

node.js/pubnub.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.6.6
1+
// Version: 3.6.7
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -12,7 +12,7 @@ var NOW = 1
1212
, PARAMSBIT = '&'
1313
, PRESENCE_HB_THRESHOLD = 5
1414
, PRESENCE_HB_DEFAULT = 30
15-
, SDK_VER = '3.6.6'
15+
, SDK_VER = '3.6.7'
1616
, REPL = /{([\w\-]+)}/g;
1717

1818
/**
@@ -793,7 +793,7 @@ function PN_API(setup) {
793793
function(uid) { presence( {
794794
'action' : 'join',
795795
'uuid' : uid,
796-
'timestamp' : rnow(),
796+
'timestamp' : Math.floor(rnow() / 1000),
797797
'occupancy' : here['occupancy'] || 1
798798
}, here, channel ); } );
799799
}
@@ -1377,7 +1377,7 @@ var NOW = 1
13771377
, XHRTME = 310000
13781378
, DEF_TIMEOUT = 10000
13791379
, SECOND = 1000
1380-
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.6.6'
1380+
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.6.7'
13811381
, crypto = require('crypto')
13821382
, proxy = null
13831383
, XORIGN = 1;

phonegap/pubnub.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.6.6
1+
// Version: 3.6.7
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -12,7 +12,7 @@ var NOW = 1
1212
, PARAMSBIT = '&'
1313
, PRESENCE_HB_THRESHOLD = 5
1414
, PRESENCE_HB_DEFAULT = 30
15-
, SDK_VER = '3.6.6'
15+
, SDK_VER = '3.6.7'
1616
, REPL = /{([\w\-]+)}/g;
1717

1818
/**
@@ -793,7 +793,7 @@ function PN_API(setup) {
793793
function(uid) { presence( {
794794
'action' : 'join',
795795
'uuid' : uid,
796-
'timestamp' : rnow(),
796+
'timestamp' : Math.floor(rnow() / 1000),
797797
'occupancy' : here['occupancy'] || 1
798798
}, here, channel ); } );
799799
}
@@ -2522,7 +2522,7 @@ THE SOFTWARE.
25222522
* UTIL LOCALS
25232523
*/
25242524
var NOW = 1
2525-
, PNSDK = 'PubNub-JS-' + 'Phonegap' + '/' + '3.6.6'
2525+
, PNSDK = 'PubNub-JS-' + 'Phonegap' + '/' + '3.6.7'
25262526
, XHRTME = 310000;
25272527

25282528

0 commit comments

Comments
 (0)