From 10f18ba4918f5d623298097d5628fcde3b2cf634 Mon Sep 17 00:00:00 2001 From: utf-4096 Date: Fri, 19 May 2023 17:53:46 +0200 Subject: [PATCH] feat(client): add close event on websocket termination --- src/Client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client.js b/src/Client.js index 9b166e7..02cf7d6 100644 --- a/src/Client.js +++ b/src/Client.js @@ -76,6 +76,7 @@ export class Client extends EventEmitter { } ws.onclose = () => { + this.emit('close') } }