MCPcopy
hub / github.com/livekit/livekit / NotifyEvent

Method NotifyEvent

pkg/telemetry/events.go:32–43  ·  view source on GitHub ↗
(ctx context.Context, event *livekit.WebhookEvent, opts ...webhook.NotifyOption)

Source from the content-addressed store, hash-verified

30)
31
32func (t *telemetryService) NotifyEvent(ctx context.Context, event *livekit.WebhookEvent, opts ...webhook.NotifyOption) {
33 if t.notifier == nil {
34 return
35 }
36
37 event.CreatedAt = time.Now().Unix()
38 event.Id = guid.New("EV_")
39
40 if err := t.notifier.QueueNotify(ctx, event, opts...); err != nil {
41 logger.Warnw("failed to notify webhook", err, "event", event.Event)
42 }
43}
44
45func (t *telemetryService) RoomStarted(ctx context.Context, room *livekit.Room) {
46 t.enqueue(func() {

Callers 9

RoomStartedMethod · 0.95
RoomEndedMethod · 0.95
ParticipantActiveMethod · 0.95
ParticipantLeftMethod · 0.95
TrackPublishedMethod · 0.95
TrackUnpublishedMethod · 0.95
NotifyEgressEventMethod · 0.95
IngressStartedMethod · 0.95
IngressEndedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected