Is there any way to flow data more than 15 kb in r...
# ask-ai
a
Is there any way to flow data more than 15 kb in rpc method? Or any other method so that it remains synchronous.
t
Thanks for reaching out, Himanshu. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I completely understand how important it is to send your data smoothly! In LiveKit, the RPC method call has a limit of 15 KB for both requests and responses, so sending data larger than that will unfortunately cause an error. But don't worry, there are some great alternatives to handle bigger data while keeping things synchronous or near-realtime: • Byte Streams: This is a wonderful way to stream files or binary data like images or serialized objects between participants. Although each chunk is under 15 KB, the entire stream can carry much larger payloads, ensuring everything arrives in order and complete. • Data Packets: If you want more control, you can use reliable or lossy data packets. In reliable mode, each packet can carry up to 15 KB of data, which works well for things where order matters, like chat messages. I hope this helps you work around the RPC size limit! Please feel free to reach out if you'd like more details or a hand with setting these up—I’m here to help! Sources: Sources/LiveKit/Core/RPC.swift | src/room/participant/LocalParticipant.ts | lib/src/types/rpc.dart | livekit-ffi/src/livekit.proto.rs | Sending files & bytes | LiveKit Docs