Merge pull request #4915 from toeverything/chore/hotfix-back-to-master

fix: cherry pick hotfix back to master
This commit is contained in:
LongYinan
2023-11-13 10:12:06 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -50,6 +50,8 @@ type EventResponse<Data = any> =
@WebSocketGateway({
cors: process.env.NODE_ENV !== 'production',
transports: ['websocket'],
// see: https://socket.io/docs/v4/server-options/#maxhttpbuffersize
maxHttpBufferSize: 1e8, // 100 MB
})
export class EventsGateway implements OnGatewayConnection, OnGatewayDisconnect {
protected logger = new Logger(EventsGateway.name);