fix : chat

This commit is contained in:
morteza-mortezai
2025-10-12 16:41:09 +03:30
parent 0a940e3b3a
commit 0b94414d62
+6 -7
View File
@@ -19,13 +19,12 @@ export class ChatGateway {
this.io = new Server(server, {
path: "/ws-chat",
// addTrailingSlash: false,
// cors: {
// origin: true,
// allowedHeaders: ["Authorization"],
// credentials: true,
// methods: ["GET", "POST"],
// },
cors: { origin: "*" },
cors: {
origin: true,
allowedHeaders: ["Authorization"],
credentials: true,
methods: ["GET", "POST"],
},
});
this.io.on("connection", (socket: Socket) => this.handleConnection(socket));
return this.io;