From 096d243f6db0797d2930c1f855a76d434d292533 Mon Sep 17 00:00:00 2001 From: Mohamad Ihsan Date: Mon, 29 Aug 2022 14:27:59 +0700 Subject: [PATCH] update bugs? --- application/modules/hsm/services/webSocket.js | 2 +- application/modules/hsm/services/webSocket2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/modules/hsm/services/webSocket.js b/application/modules/hsm/services/webSocket.js index 375660f..85bb038 100644 --- a/application/modules/hsm/services/webSocket.js +++ b/application/modules/hsm/services/webSocket.js @@ -179,7 +179,7 @@ class WebSocketClient { async clientAuth() { try { - const authHead = Buffer.alloc(2); + var authHead = Buffer.alloc(2); // Set system code (when 0x0000) // authHead[0] = 0x93; // authHead[1] = 0x9e; diff --git a/application/modules/hsm/services/webSocket2.js b/application/modules/hsm/services/webSocket2.js index b69fc9a..b4a8197 100644 --- a/application/modules/hsm/services/webSocket2.js +++ b/application/modules/hsm/services/webSocket2.js @@ -179,7 +179,7 @@ class WebSocketClient { async clientAuth() { try { - const authHead = Buffer.alloc(2); + var authHead = Buffer.alloc(2); // Set system code (when 0x0000) // authHead[0] = 0x93; // authHead[1] = 0x9e;