From 85a3c36fbc2d8cbcb8151754581185d289fd79dd Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 13 Feb 2025 13:14:05 +1300 Subject: [PATCH] read result code when emitting send response event --- src/connection/connection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connection/connection.js b/src/connection/connection.js index b0fc156..48ffc25 100644 --- a/src/connection/connection.js +++ b/src/connection/connection.js @@ -229,6 +229,7 @@ class Connection extends EventEmitter { onSentResponse(bufferReader) { this.emit(Constants.ResponseCodes.Sent, { + result: bufferReader.readBytes(1), expectedAckCrc: bufferReader.readUInt32LE(), estTimeout: bufferReader.readUInt32LE(), });