Skip to content
Merged
Show file tree
Hide file tree
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 .changeset/famous-rivers-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fake-scope/fake-pkg": patch
---

Add webhook for aborted participant connection.
8 changes: 6 additions & 2 deletions livekit/livekit_analytics.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_webhook.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion protobufs/livekit_analytics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ enum AnalyticsEventType {
ROOM_ENDED = 1;
PARTICIPANT_JOINED = 2;
PARTICIPANT_LEFT = 3;
PARTICIPANT_CONNECTION_ABORTED = 45;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shishirng adding a new analytics type event for cases where participant joins, but never becomes active, i. e. participant session is closed without participant becoming active. Is it okay to add and send new events without changes on analytics side?

TRACK_PUBLISHED = 4;
TRACK_PUBLISH_REQUESTED = 20;
TRACK_UNPUBLISHED = 5;
Expand Down Expand Up @@ -128,7 +129,7 @@ enum AnalyticsEventType {
API_CALL = 41;
WEBHOOK = 42;

// NEXT_ID: 45
// NEXT_ID: 46
}

message AnalyticsClientMeta {
Expand Down
2 changes: 1 addition & 1 deletion protobufs/livekit_webhook.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import "livekit_egress.proto";
import "livekit_ingress.proto";

message WebhookEvent {
// one of room_started, room_finished, participant_joined, participant_left,
// one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted,
// track_published, track_unpublished, egress_started, egress_updated, egress_ended,
// ingress_started, ingress_ended
string event = 1;
Expand Down
23 changes: 12 additions & 11 deletions webhook/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ var (
const authHeader = "Authorization"

const (
EventRoomStarted = "room_started"
EventRoomFinished = "room_finished"
EventParticipantJoined = "participant_joined"
EventParticipantLeft = "participant_left"
EventTrackPublished = "track_published"
EventTrackUnpublished = "track_unpublished"
EventEgressStarted = "egress_started"
EventEgressUpdated = "egress_updated"
EventEgressEnded = "egress_ended"
EventIngressStarted = "ingress_started"
EventIngressEnded = "ingress_ended"
EventRoomStarted = "room_started"
EventRoomFinished = "room_finished"
EventParticipantJoined = "participant_joined"
EventParticipantLeft = "participant_left"
EventParticipantConnectionAborted = "participant_connection_aborted"
EventTrackPublished = "track_published"
EventTrackUnpublished = "track_unpublished"
EventEgressStarted = "egress_started"
EventEgressUpdated = "egress_updated"
EventEgressEnded = "egress_ended"
EventIngressStarted = "ingress_started"
EventIngressEnded = "ingress_ended"
)
Loading