Hello Team, Can we increase the size of the payloa...
# ask-ai
l
Hello Team, Can we increase the size of the payload when doing RPC calls in swift
t
Thanks for reaching out, Pranjal. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! I wanted to share that the maximum payload size for RPC calls in the LiveKit Swift SDK is set to 15 KiB (15,360 bytes). This limit is built into the SDK and applies to both request and response payloads. Unfortunately, there isn't a way to adjust this limit through configuration or API parameters. If you're looking to transfer larger amounts of data, a great option would be to explore Byte Streams. They’re specifically designed to handle bigger data transfers smoothly. I hope this helps, and please feel free to ask if you have any more questions! Sources: Sources/LiveKit/Participant/LocalParticipant+RPC.swift | Remote method calls (RPC) | LiveKit Docs | livekit/src/room/participant/rpc.rs | Data packets | LiveKit Docs | Realtime data | LiveKit Docs