Skip to content

Commit

Permalink
Log why heartbeat cannot be sent (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Walter Martins <walter.martins@atos.net>
  • Loading branch information
rpastro and wdmartins committed Apr 13, 2023
1 parent 247c143 commit 646d841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Session.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ module.exports = function (MsrpSdk) {
this.pendingSockets.push(socket);
if (this.socket.destroyed) {
this.closeSocket(false);
} else if (this.canSend(HEARTBEAT_CONTENT_TYPE)) {
} else if (this.canSend(HEARTBEAT_CONTENT_TYPE, true)) {
MsrpSdk.Logger.info('[Session]: Send heartbeat message to confirm active socket is still connected');
this.sendMessage('HEARTBEAT', HEARTBEAT_CONTENT_TYPE);
}
Expand Down

0 comments on commit 646d841

Please sign in to comment.