This commit is contained in:
ditiqi 2025-01-27 22:43:05 +08:00
parent 69ff0f3696
commit f149f20052
1 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,7 @@ async function bootstrap() {
// 启用 CORS 并允许所有来源
app.enableCors({
origin: "*",
origin: '*',
});
const wsService = app.get(WebSocketService);
await wsService.initialize(app.getHttpServer());
@ -18,6 +18,5 @@ async function bootstrap() {
const port = process.env.SERVER_PORT || 3000;
await app.listen(port);
}
bootstrap();