Browse Source

Update instance.ts

Sergii Kliuchnyk 2 years ago
parent
commit
80237305b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/instance.ts

+ 1 - 1
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);
   });