diff --git a/packages/nocodb-nest/src/Noco.ts b/packages/nocodb-nest/src/Noco.ts index a86f260f9a..bc9f5dfef3 100644 --- a/packages/nocodb-nest/src/Noco.ts +++ b/packages/nocodb-nest/src/Noco.ts @@ -3,6 +3,7 @@ import { NestFactory } from '@nestjs/core'; import clear from 'clear'; import * as express from 'express'; import NcToolGui from 'nc-lib-gui'; +import { IoAdapter } from '@nestjs/platform-socket.io'; import { AppModule } from './app.module'; import { NC_LICENSE_KEY } from './constants'; @@ -96,6 +97,9 @@ export default class Noco { this._server = server; const nestApp = await NestFactory.create(AppModule); + + nestApp.useWebSocketAdapter(new IoAdapter(httpServer)); + nestApp.use( express.json({ limit: process.env.NC_REQUEST_BODY_SIZE || '50mb' }), );