From 8da2c95b284d537422b7c4f405511103ae38eb3a Mon Sep 17 00:00:00 2001 From: Mauricio Astudillo Toledo Date: Mon, 19 Aug 2024 11:41:52 -0400 Subject: [PATCH 1/2] feat: add private property socket --- src/pos.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pos.js b/src/pos.js index 729bc3a..43921d5 100644 --- a/src/pos.js +++ b/src/pos.js @@ -20,6 +20,7 @@ export class TransbankPOSWebSocket extends EventEmitter { this.isConnected = false this.debugEnabled = true this.timeout = 120000 + this.socket = null } debug(...args) { From a944f80b52ed706310ffb6c20f17b1d194a72c09 Mon Sep 17 00:00:00 2001 From: Mauricio Astudillo Toledo Date: Mon, 19 Aug 2024 11:42:24 -0400 Subject: [PATCH 2/2] feat: rename method socket to getSocket --- src/pos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pos.js b/src/pos.js index 43921d5..24bf443 100644 --- a/src/pos.js +++ b/src/pos.js @@ -29,7 +29,7 @@ export class TransbankPOSWebSocket extends EventEmitter { } } - socket() { + getSocket() { return this.socket; }