{"version":3,"file":"constants.mjs","sources":["../../../../src/room/data-stream/constants.ts"],"sourcesContent":["/**\n * Maximum size of a single data-stream chunk in bytes, and the budget used to decide whether a\n * payload can be sent inline as a single header packet. Kept below the ~16k data-channel MTU to\n * leave headroom for protocol framing and E2EE overhead.\n *\n * @internal\n */\nexport const STREAM_CHUNK_SIZE_BYTES = 15_000;\n\n/**\n * Default cap on the number of decompressed bytes a single incoming compressed data stream may\n * produce (5 GB). A tiny compressed payload can inflate to an arbitrarily large output\n * (decompression bomb), so the decompressor's output is bounded rather than trusting the wire\n * size; streams exceeding the cap error with `PayloadTooLarge`.\n *\n * @internal\n */\nexport const DEFAULT_MAX_PAYLOAD_BYTE_LENGTH = 5_000_000_000;\n\n/**\n * Maximum number of incoming data streams a single remote participant may have open at once.\n * Each open stream holds receiver-side state until its trailer arrives (or the sender\n * disconnects), so without a cap a participant could open streams it never closes and exhaust\n * the receiver's memory. Headers for new streams beyond the cap are dropped.\n *\n * @internal\n */\nexport const DEFAULT_MAX_OPEN_STREAMS_PER_PARTICIPANT = 500;\n\n/**\n * Reserved topic carrying transcription text streams. `IncomingDataStreamManager` taps this topic\n * with its `transcriptionStreamArrived` event so the SDK can rebuild transcription events while\n * still delivering the stream to any application handler.\n *\n * @internal\n */\nexport const TRANSCRIPTION_TOPIC = 'lk.transcription';\n"],"names":["STREAM_CHUNK_SIZE_BYTES","DEFAULT_MAX_PAYLOAD_BYTE_LENGTH","DEFAULT_MAX_OPEN_STREAMS_PER_PARTICIPANT","TRANSCRIPTION_TOPIC"],"mappings":"AAAA;;;;;;AAMG;AACI,MAAMA,uBAAuB,GAAG;AAEvC;;;;;;;AAOG;AACI,MAAMC,+BAA+B,GAAG;AAE/C;;;;;;;AAOG;AACI,MAAMC,wCAAwC,GAAG;AAExD;;;;;;AAMG;AACI,MAAMC,mBAAmB,GAAG"}