Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ladvoc
Copy link
Collaborator

@ladvoc ladvoc commented Aug 27, 2025

New features:

  • Automatic connection retry for non-fatal errors
    • Retry up to LK_MAX_RETRIES times
    • Exponential backoff + randomization between retry attempts
  • Room failure reason
    • Exposes a unified enum, livekit_failure_reason_t describing why a room connection failed
    • Public APIs to get failure reason and map to string description

New examples:

  • Minimal: bare minimum example for connecting to a room with two-way audio

Internal refactoring & improvements:

  • Hardcode STUN servers: this is a temporary workaround due to an issue using LiveKit TURN servers
  • Implement an event-driven FSM for more robust handling of engine state transitions
  • Create helper methods for encoding/decoding protocol messages
  • Implement signaling ping timeout
  • Switch to FreeRTOS timers over esp_timer for ping
  • Skip decoding protocol message types that are not supported yet
  • Benchmarking: measure WebSocket and peer connection time
    • Enable with LK_BENCHMARK=y, see results in console

@ladvoc ladvoc requested a review from chenosaurus August 27, 2025 05:37
@ladvoc ladvoc merged commit 78dc1ca into main Aug 27, 2025
4 of 6 checks passed
@ladvoc ladvoc deleted the ladvoc/connection-reliability branch August 27, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants