You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If there was some error in the RTCConnection and the participant couldn't join to the session livekit still sends ParticipantLeft but didn't send ParticipantJoined webhook event.
ParticipantJoined webhook event will be sent only if the participant state will be changed to ACTIVE, but ParticipantLeft webhook event will be sent even when the state will be changed to DISCONNECTED. https://github.com/livekit/protocol/blob/main/livekit/livekit_models.pb.go#L345
So if the ICE connection won't be established the state will change in the following order: JOINING -> JOINED -> DISCONNECTED and joined event won't be sent but left will be.
Server
Version: 1.2.5
Environment: local dev, EKS
Expected behavior
I expect to always have a Join webhook event before a Left.
The text was updated successfully, but these errors were encountered:
blombosi
changed the title
Livekit sends ParticipantLeft wevhook event without ParticipantJoined webhook event if RTC connection wasn't successfull
Livekit sends ParticipantLeft webhook event without ParticipantJoined webhook event if RTC connection wasn't successfull
Oct 27, 2022
I'm experiencing same issue too. This typically occurs when a user has a poor connection. When a person joins plugNmeet, we increase the count, and when they leave, we decrease it, but because of this issue, the total number count turned negative sometime :-D
Describe the bug
If there was some error in the RTCConnection and the participant couldn't join to the session livekit still sends ParticipantLeft but didn't send ParticipantJoined webhook event.
I tried to debug the issue and found these:
livekit/pkg/rtc/room.go
Line 264 in 1019faa
ParticipantJoined webhook event will be sent only if the participant state will be changed to ACTIVE, but ParticipantLeft webhook event will be sent even when the state will be changed to DISCONNECTED.
https://github.com/livekit/protocol/blob/main/livekit/livekit_models.pb.go#L345
So if the ICE connection won't be established the state will change in the following order: JOINING -> JOINED -> DISCONNECTED and joined event won't be sent but left will be.
Server
Expected behavior
I expect to always have a Join webhook event before a Left.
The text was updated successfully, but these errors were encountered: