From 55b944bfc51785e2340e431b50d697aeaba441dc Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Fri, 13 Mar 2026 23:21:48 -0400 Subject: [PATCH] fix: restore WsAdapter for RdpModule gateway, manual handler coexists Co-Authored-By: Claude Opus 4.6 --- backend/src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main.ts b/backend/src/main.ts index 69401c2..d34f544 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -1,5 +1,6 @@ import { NestFactory } from '@nestjs/core'; import { ValidationPipe } from '@nestjs/common'; +import { WsAdapter } from '@nestjs/platform-ws'; import { AppModule } from './app.module'; import { WebSocketServer } from 'ws'; import { TerminalGateway } from './terminal/terminal.gateway'; @@ -9,6 +10,7 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); app.setGlobalPrefix('api'); app.useGlobalPipes(new ValidationPipe({ whitelist: true, transform: true })); + app.useWebSocketAdapter(new WsAdapter(app)); app.enableCors({ origin: process.env.NODE_ENV === 'production' ? false : 'http://localhost:3001', credentials: true,