Skip to content

Commit 3bed630

Browse files
author
Max Presman
committed
timeout interval
1 parent 48621e4 commit 3bed630

File tree

12 files changed

+44
-17
lines changed

12 files changed

+44
-17
lines changed

.pubnub.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: javascript
2-
version: 4.5.0
2+
version: 4.6.0
33
schema: 1
44
scm: github.com/pubnub/javascript
55
files:
66
- dist/web/pubnub.js
77
- dist/web/pubnub.min.js
88
changelog:
9+
- version: v4.6.0
10+
date:
11+
changes:
12+
- type: feature
13+
text: add support for presence deltas.
914
- version: v4.5.0
1015
date:
1116
changes:
@@ -240,7 +245,7 @@ features:
240245
- SUBSCRIBE-FILTER-EXPRESSION
241246
- SUBSCRIBE-PUBLISHER-UUID
242247
supported-platforms:
243-
-
248+
-
244249
version: Pubnub Javascript for Web
245250
platforms:
246251
- Safari 10 and up
@@ -252,14 +257,14 @@ supported-platforms:
252257
frameworks:
253258
- Angular 1
254259
- Angular 2 using Javascript Plain
255-
-
260+
-
256261
version: Pubnub Javascript for Node
257262
platforms:
258263
- OSX 10.12 and up
259264
- Ubuntu 14.04 and above
260265
- Windows 7, 8, 10
261266
editors:
262-
- 0.12
267+
- 0.12
263268
- 4
264269
- 5
265270
- 6

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11

2+
## [v4.6.0](https://github.com/pubnub/javascript/tree/v4.6.0)
3+
4+
5+
[Full Changelog](https://github.com/pubnub/javascript/compare/v4.5.0...v4.6.0)
6+
7+
- 🌟add support for presence deltas.
8+
9+
10+
11+
212
## [v4.5.0](https://github.com/pubnub/javascript/tree/v4.5.0)
313

414

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ please use the [master_3x](https://github.com/pubnub/javascript/tree/master_3x)
1919
- If you **need help** or have a **general question**, contact <[email protected]>
2020

2121
## CDN Links
22-
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.5.0.min.js
23-
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.5.0.js
22+
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.6.0.min.js
23+
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.6.0.js

dist/web/pubnub.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! 4.5.0 / Consumer */
1+
/*! 4.6.0 / Consumer */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -814,7 +814,7 @@ return /******/ (function(modules) { // webpackBootstrap
814814
}, {
815815
key: 'getVersion',
816816
value: function getVersion() {
817-
return '4.5.0';
817+
return '4.6.0';
818818
}
819819
}, {
820820
key: '_decideUUID',
@@ -1862,6 +1862,10 @@ return /******/ (function(modules) { // webpackBootstrap
18621862
announce.leave = message.payload.leave;
18631863
}
18641864

1865+
if (message.payload.timeout) {
1866+
announce.timeout = message.payload.timeout;
1867+
}
1868+
18651869
_this5._listenerManager.announcePresence(announce);
18661870
} else {
18671871
var _announce = {};

dist/web/pubnub.min.js

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

lib/core/components/config.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/components/config.js.map

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/components/subscription_manager.js

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

lib/core/components/subscription_manager.js.map

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pubnub",
3-
"version": "4.5.0",
3+
"version": "4.6.0",
44
"author": "PubNub <[email protected]>",
55
"description": "Publish & Subscribe Real-time Messaging with PubNub",
66
"bin": {},
@@ -87,4 +87,4 @@
8787
"engine": {
8888
"node": ">=0.8"
8989
}
90-
}
90+
}

src/core/components/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export default class {
196196
setSendBeaconConfig(val: boolean): this { this._useSendBeacon = val; return this; }
197197

198198
getVersion(): string {
199-
return '4.5.0';
199+
return '4.6.0';
200200
}
201201

202202
_decideUUID(providedUUID: string): string {

src/core/components/subscription_manager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ export default class {
375375
announce.leave = message.payload.leave;
376376
}
377377

378+
if (message.payload.timeout) {
379+
announce.timeout = message.payload.timeout;
380+
}
381+
378382
this._listenerManager.announcePresence(announce);
379383
} else {
380384
let announce: MessageAnnouncement = {};

0 commit comments

Comments
 (0)