It looks like the error message is telling us that the signal client disconnected because of a "ping timeout" and then tried to reconnect. This usually happens when the ping-pong check that keeps the connection healthy doesn’t get a response in time.
Here are a few things you can try to fix this:
•
Make Sure Your Network Is Stable: Double-check that the client’s internet connection is steady and reliable, since any hiccups can cause these ping timeouts.
•
Keep an Eye on Reconnection Attempts: The client will try to reconnect on its own. You can watch for these events in your app to let users know what’s going on or handle things smoothly during reconnection.
•
Tweak Ping Settings if Needed: You might want to adjust the ping interval and timeout values, but be careful not to overload the server while doing this.
•
Look at Server Logs: Check if the server is experiencing delays or high latency that could be slowing down ping responses.
If you keep running into this issue, just let me know if you notice any specific patterns or situations when it happens, or if you’d like a hand digging deeper into the problem.
Sources:
src/room/RTCEngine.ts |
lib/src/core/signal_client.dart |
Connecting to LiveKit | LiveKit Docs |
livekit/src/rtc_engine/mod.rs