We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c94a83 commit 9e07266Copy full SHA for 9e07266
apps/api-gateway/src/main.ts
@@ -6,6 +6,7 @@ import cookieParser from 'cookie-parser';
6
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
7
import { ConfigService } from '@nestjs/config';
8
import { Configuration } from '@leetcode/config';
9
+import { IoAdapter } from '@nestjs/platform-socket.io';
10
11
declare global {
12
namespace Express {
@@ -49,6 +50,7 @@ async function bootstrap() {
49
50
preflightContinue: false,
51
optionsSuccessStatus: 204,
52
});
53
+ app.useWebSocketAdapter(new IoAdapter(app));
54
55
app.setGlobalPrefix('api', {
56
exclude: [{ path: 'metrics', method: RequestMethod.GET }],
0 commit comments