LiveKit JS Client SDK - v2.25.0
    Preparing search index...

    Interface RoomDataStreamOptions

    Options controlling data stream behavior for a room.

    interface RoomDataStreamOptions {
        maxOpenStreamsPerParticipant?: number;
        maxPayloadByteLength?: number;
    }
    Index
    maxOpenStreamsPerParticipant?: number

    Maximum number of incoming data streams a single remote participant may have open at once.

    Each open stream holds state on this client until its trailer arrives or the sender disconnects. Headers for new streams beyond this limit are dropped with an error log, so a participant can't exhaust this client's memory by opening streams it never closes.

    This is enforced on the receiving side only: raising it on a sender has no effect.

    500
    
    maxPayloadByteLength?: number

    Maximum size, in bytes, of the payload this client accepts from a single incoming data stream.

    A compressed stream can inflate to an arbitrarily large payload, so the decompressed output is bounded rather than trusting the size declared on the wire. An incoming stream that exceeds the cap fails with a DataStreamErrorReason.PayloadTooLarge error on the next read instead of buffering without bound.

    This is enforced on the receiving side only: raising it on a sender has no effect.

    5_000_000_000 (5 GB)