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.
1 parent a33f997 commit e99167dCopy full SHA for e99167d
lib/connection/connection.js
@@ -176,7 +176,7 @@ function Connection(context) {
176
function connectCallback(self, callback) {
177
return function (err) {
178
if (Parameters.getValue(Parameters.names.CLIENT_SESSION_KEEP_ALIVE)) {
179
- self.keepalive = setInterval(self.heartbeat, Parameters.getValue(Parameters.names.CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY) * 1000, self);
+ self.keepalive = setInterval(self.heartbeat, Parameters.getValue(Parameters.names.CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY) * 1000, callback);
180
}
181
if (Util.isFunction(callback)) {
182
callback(Errors.externalize(err), self);
0 commit comments