瀏覽代碼

Update instance.ts

Sergii Kliuchnyk 2 年之前
父節點
當前提交
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);
     messageHandler.handle(client, message);
   });
   });
 
 
-  wss.on("close", (client: IClient) => {
+  wss2.on("close", (client: IClient) => {
     app.emit("disconnect", client);
     app.emit("disconnect", client);
   });
   });