From 968cfb523346a11e256874c3417be84185c45602 Mon Sep 17 00:00:00 2001 From: utf-4096 Date: Fri, 19 May 2023 17:55:18 +0200 Subject: [PATCH] feat(client): add logoff function to terminate connection --- src/Client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Client.js b/src/Client.js index 02cf7d6..9071703 100644 --- a/src/Client.js +++ b/src/Client.js @@ -80,6 +80,10 @@ export class Client extends EventEmitter { } } + logoff() { + this.#ws.close() + } + send(destination, port, data) { if(typeof destination === 'bigint') { destination = destination.toString(10)