what’s the RPC payload size limit? for example to ...
# ask-ai
m
what’s the RPC payload size limit? for example to send an image over as base64
t
Thanks for reaching out, Pablo. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Just a heads-up: the RPC payload size limit in LiveKit is 15,360 bytes (15 KiB). If your request or response payload goes over this limit, the RPC call won’t go through and you’ll see an error like: •
REQUEST_PAYLOAD_TOO_LARGE
(error code 1402) if the request is too big •
RESPONSE_PAYLOAD_TOO_LARGE
(error code 1504) if the response is too big Keep in mind, this limit is the same for all LiveKit client SDKs. Sources: lib/src/participant/local.dart | rpc.go | Remote method calls (RPC) | LiveKit Docs | src/room/participant/LocalParticipant.ts | Sources/LiveKit/Participant/LocalParticipant+RPC.swift