gentle-hospital-72989
07/09/2025, 11:41 AMtall-airline-16756
07/09/2025, 11:41 AMtall-airline-16756
07/09/2025, 11:41 AMpublish_data
method.
RPC (Remote Procedure Call) in LiveKit enables participants to define specific methods that other participants can invoke remotely within the room. This allows for structured communication such as requesting data or coordinating application-specific states. RPC methods are registered with register_rpc_method
and called via perform_rpc
.
In summary, data messages are for general-purpose data exchange, while RPC calls provide a way to invoke defined remote procedures for more controlled interactions.
This distinction allows LiveKit applications to choose flexible data broadcast or precise remote method execution based on their needs.
Source references from the LiveKit knowledge base.
Sources: Realtime data | LiveKit Docs | livekit-rtc/livekit/rtc/_proto/ffi_pb2.py | RPC | LiveKit Docsgentle-hospital-72989
07/09/2025, 11:43 AMtall-airline-16756
07/09/2025, 11:43 AM