Sergii Kliuchnyk 2 жил өмнө
parent
commit
80237305b7
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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);
   });