Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions livekit/src/room/participant/local_participant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,11 @@ impl LocalParticipant {
+ 'static,
) {
self.local.rpc_state.lock().handlers.insert(method, Arc::new(handler));

// Pre-connect the publisher PC so ACKs can be sent immediately when requests arrive.
// Without this, the first RPC request would trigger publisher negotiation, causing
// a ~300-500ms delay before the ACK can be sent (ICE negotiation time).
self.inner.rtc_engine.publisher_negotiation_needed();
}

pub fn unregister_rpc_method(&self, method: String) {
Expand Down