when u send data as packet with reliable=True, is ...
# ask-ai
a
when u send data as packet with reliable=True, is guaranteed that it delivers or throw an error if not?
t
Thanks for reaching out, Sebastián. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Setting
reliable=True
in LiveKit helps ensure that your data is delivered in order, with retransmission attempts if any packets get lost along the way. That said, it’s important to know that this setting doesn’t absolutely guarantee delivery, nor will it notify you with an error if a packet doesn’t make it through. For instance, if the receiver is temporarily disconnected or if retransmission limits are reached, some packets might not arrive. Also, while certain SDKs may alert you if the local send operation encounters an issue (like the data channel not being open), they won’t raise an error if the packet fails to reach the remote participant after being sent. Sources: Data packets | LiveKit Docs | packages/livekit-rtc/src/participant.ts | lib/src/participant/local.dart
a
and under lossy network conditions compared to RPC, which has more chances of getting delivered successfully
t
Thanks for reaching out! Just to make sure I understand you correctly, are you asking about how the reliable data channel compares with RPC when it comes to delivery success in lossy network conditions? Or is there a particular use case or scenario you have in mind? Knowing this will really help me give you the best possible answer.
a
Exactly what you say
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!