Skip to content

Commit eec36a6

Browse files
authored
Merge pull request #603 from kuzzleio/7.5.4-proposal
# [7.5.4](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.5.4) (2021-02-17) #### Bug fixes - [ [#602](#602) ] Fix re-subscription on re-connection ([Aschen](https://github.com/Aschen)) #### Enhancements - [ [#586](#586) ] Add keep-alive mechanism to detect connection lost with realtime protocols ([Yoann-Abbes](https://github.com/Yoann-Abbes)) ---
2 parents 939cce7 + a8ae26e commit eec36a6

File tree

54 files changed

+282
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+282
-160
lines changed

.ci/doc/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ services:
4444
- CONFIG_FILE=/mnt/.ci/doc/config.yml
4545

4646
doc-runner-node:
47-
image: node:10-alpine
47+
image: node:12-alpine
4848
command: >
4949
ash -c '
5050
mkdir -p /var/snippets/node;

.ci/doc/templates/blank.tpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const
77
} = require('kuzzle-sdk');
88

99
const kuzzle = new Kuzzle(
10-
new WebSocket('kuzzle')
10+
new WebSocket('kuzzle', { pingInterval: 2000 })
1111
);
1212

1313
[snippet-code]

.ci/doc/templates/catch.tpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77
// Instantiates a Kuzzle client
88
const
99
kuzzle = new Kuzzle(
10-
new WebSocket('kuzzle', { autoReconnect: false })
10+
new WebSocket('kuzzle', { autoReconnect: false, pingInterval: 2000 })
1111
);
1212

1313
// Adds a listener to detect any connection problems

.ci/doc/templates/createDocumentAfterSnippet.tpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// Require a kuzzle instance assigning it to a weird variable to avoid collisions and create the instance.
77
const $k = require('kuzzle-sdk');
8-
const $kInstance = new $k.Kuzzle(new $k.WebSocket('kuzzle'));
8+
const $kInstance = new $k.Kuzzle(new $k.WebSocket('kuzzle', { pingInterval: 2000 }));
99

1010
// add a listener to detect any connection problems
1111
$kInstance.on('networkError', error => {

.ci/doc/templates/default.tpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
} = require('kuzzle-sdk');
66

77
// Instantiates a Kuzzle client
8-
const kuzzle = new Kuzzle(new WebSocket('kuzzle', { autoReconnect: false }));
8+
const kuzzle = new Kuzzle(new WebSocket('kuzzle', { autoReconnect: false, pingInterval: 2000 }));
99

1010
// Adds a listener to detect any connection problems
1111
kuzzle.on('networkError', error => {

.ci/doc/templates/print-result-successes.tpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77
// Instantiates a Kuzzle client
88
const
99
kuzzle = new Kuzzle(
10-
new WebSocket('kuzzle', { autoReconnect: false })
10+
new WebSocket('kuzzle', { autoReconnect: false, pingInterval: 2000 })
1111
);
1212

1313
// Adds a listener to detect connection problems

.ci/doc/templates/realtime.tpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77
// Instantiates a Kuzzle client
88
const
99
kuzzle = new Kuzzle(
10-
new WebSocket('kuzzle', { autoReconnect: false })
10+
new WebSocket('kuzzle', { autoReconnect: false, pingInterval: 2000 })
1111
);
1212

1313
// Adds a listener to detect any connection problems

.ci/doc/templates/success.tpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77
// Instantiates a Kuzzle client
88
const
99
kuzzle = new Kuzzle(
10-
new WebSocket('kuzzle', { autoReconnect: false })
10+
new WebSocket('kuzzle', { autoReconnect: false, pingInterval: 2000 })
1111
);
1212

1313
// Adds a listener to detect any connection problems

.ci/doc/templates/thencatch.tpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const {
99
// Instantiates a Kuzzle client
1010
const
1111
kuzzle = new Kuzzle(
12-
new WebSocket('kuzzle', { autoReconnect: false })
12+
new WebSocket('kuzzle', { autoReconnect: false, pingInterval: 2000 })
1313
);
1414

1515
// Adds a listener to detect any connection problems

.ci/doc/templates/without-connect.tpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77
// Instantiates a Kuzzle client
88
const
99
kuzzle = new Kuzzle(
10-
new WebSocket('kuzzle', { autoReconnect: false })
10+
new WebSocket('kuzzle', { autoReconnect: false, pingInterval: 2000 })
1111
);
1212

1313
// Adds a listener to detect any connection problems

0 commit comments

Comments
 (0)