feat(client): add logoff function to terminate connection

This commit is contained in:
2023-05-19 17:55:18 +02:00
parent 10f18ba491
commit 968cfb5233
+4
View File
@@ -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)