From baa551bdd2b5565355184e1b685ef9ddd8d07f2d Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 13 Feb 2025 13:13:39 +1300 Subject: [PATCH] provide ack code as an integer instead of bytes --- src/connection/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection/connection.js b/src/connection/connection.js index 2c5c5a7..b0fc156 100644 --- a/src/connection/connection.js +++ b/src/connection/connection.js @@ -189,7 +189,7 @@ class Connection extends EventEmitter { onSendConfirmedPush(bufferReader) { this.emit(Constants.PushCodes.SendConfirmed, { - ackCode: bufferReader.readBytes(4), + ackCode: bufferReader.readUInt32LE(), roundTrip: bufferReader.readUInt32LE(), }); }