Browse Source

Update instance.ts

Sergii Kliuchnyk 2 năm trước cách đây
mục cha
commit
80237305b7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
   });