Skip to content

Commit be7dcf8

Browse files
author
Max Presman
committed
fix keepalive
1 parent 0b9b59d commit be7dcf8

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

.pubnub.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: javascript
2-
version: 4.15.0
2+
version: 4.15.1
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.15.1
10+
date:
11+
changes:
12+
- type: improvement
13+
text: fix typo to enable http keep alive support
914
- version: v4.15.0
1015
date:
1116
changes:

README.md

+2-2
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.15.0.min.js
23-
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.15.0.js
22+
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.15.1.min.js
23+
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.15.1.js

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pubnub",
3-
"version": "4.15.0",
3+
"version": "4.15.1",
44
"author": "PubNub <[email protected]>",
55
"description": "Publish & Subscribe Real-time Messaging with PubNub",
66
"bin": {},
@@ -90,4 +90,4 @@
9090
"engine": {
9191
"node": ">=0.8"
9292
}
93-
}
93+
}

src/core/components/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export default class {
218218
setSendBeaconConfig(val: boolean): this { this._useSendBeacon = val; return this; }
219219

220220
getVersion(): string {
221-
return '4.15.0';
221+
return '4.15.1';
222222
}
223223

224224
_decideUUID(providedUUID: string): string {

src/networking/modules/web-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function xdr(superagentConstruct: superagent, endpoint: EndpointDefinition, call
3939
}
4040

4141
if (this._config.keepAlive && this._modules.keepAlive) {
42-
superagentConstruct = this._module.keepAlive(superagentConstruct);
42+
superagentConstruct = this._modules.keepAlive(superagentConstruct);
4343
}
4444

4545
return superagentConstruct

test/integration/endpoints/time.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ describe('time endpoints', () => {
1919

2020
beforeEach(() => {
2121
nock.cleanAll();
22-
pubnub = new PubNub({});
22+
pubnub = new PubNub({
23+
keepAlive: true
24+
});
2325
});
2426

2527
it('calls the callback function when time is fetched', (done) => {

0 commit comments

Comments
 (0)