We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce8d7d2 + 934e578 commit a098bf6Copy full SHA for a098bf6
src/HeartbeatService.ts
@@ -63,7 +63,10 @@ class Heartbeat {
63
}
64
if (timeSinceLastRead > this.heartbeatInterval) {
65
var req = ClientPingCodec.encodeRequest();
66
- this.client.getInvocationService().invokeOnConnection(conn, req);
+ this.client.getInvocationService().invokeOnConnection(conn, req)
67
+ .catch((error) => {
68
+ this.logger.warn('HeartbeatService', error);
69
+ });
70
} else {
71
if (!conn.heartbeating) {
72
setImmediate(this.onHeartbeatRestored.bind(this), conn);
test/HeartbeatTest.js
@@ -3,7 +3,7 @@ var HazelcastClient = require('../.').Client;
3
var expect = require('chai').expect;
4
var Config = require('../.').Config;
5
6
-describe('Hearbeat', function() {
+describe('Heartbeat', function() {
7
this.timeout(30000);
8
9
var cluster;
0 commit comments