[]
• Optional allowRequest: any
Forwarded directly to the Socket.IO allowRequest option.
Use this to control whether a handshake or upgrade request should be accepted.
see https://socket.io/docs/v4/server-options/#allowrequest
• Optional cors: any
Forwarded directly to the Socket.IO cors option.
Use this to configure CORS behavior for Socket.IO HTTP requests.
see https://socket.io/docs/v4/handling-cors/
• Optional httpServer: Server | Server | Http2SecureServer | Http2Server
• Optional maxDecompressedMessageSize: number
The maximum allowed size in bytes after a compressed message is decompressed. Exceeding this limit reports a message error without crashing the server process. Defaults to the current Node.js maximum string length, or 512 MiB when the runtime does not expose that limit.
• Optional maxHttpBufferSize: number
The maximum incoming message size in bytes. Socket.IO will close the connection when a payload exceeds this value. Defaults to 512 MiB.
• Optional path: string
The request path for the server. Defaults to '/collaboration/'.
• Optional port: number
• Optional socketIoAdapter: any
Custom Socket.IO adapter for multi-node/distributed deployments. Allows integration with various message brokers (Redis, MongoDB, PostgreSQL, etc.) to enable message broadcasting across multiple server instances.