diff --git a/packages/core/src/server/ws.ts b/packages/core/src/server/ws.ts index 292ac430f..56678e9b2 100644 --- a/packages/core/src/server/ws.ts +++ b/packages/core/src/server/ws.ts @@ -115,7 +115,7 @@ export class WsServer { */ constructor(private readonly app: any) { this.logger = app.logger ?? new Logger(); - this.serverConfig = app.resolvedUserConfig.server as ServerOptions; + this.serverConfig = app.config.server as ServerOptions; this.createWebSocketServer(); }