From 80237305b7f013f435627f27f246700d56974f53 Mon Sep 17 00:00:00 2001 From: Sergii Kliuchnyk Date: Fri, 30 Sep 2022 11:57:29 +0300 Subject: [PATCH] Update instance.ts --- src/instance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instance.ts b/src/instance.ts index eb55845..f59bf8c 100644 --- a/src/instance.ts +++ b/src/instance.ts @@ -62,7 +62,7 @@ export const createInstance = ({ app, server, options }: { messageHandler.handle(client, message); }); - wss.on("close", (client: IClient) => { + wss2.on("close", (client: IClient) => { app.emit("disconnect", client); });