Update instance.ts

This commit is contained in:
Sergii Kliuchnyk 2022-09-30 11:57:29 +03:00 committed by GitHub
parent 7deac0d07e
commit 80237305b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}); });