MCPcopy
hub / github.com/livekit/livekit / SendNodeRoomStates

Method SendNodeRoomStates

pkg/telemetry/analyticsservice.go:103–114  ·  view source on GitHub ↗
(_ context.Context, nodeRooms *livekit.AnalyticsNodeRooms)

Source from the content-addressed store, hash-verified

101}
102
103func (a *analyticsService) SendNodeRoomStates(_ context.Context, nodeRooms *livekit.AnalyticsNodeRooms) {
104 if a.nodeRooms == nil {
105 return
106 }
107
108 nodeRooms.NodeId = a.nodeID
109 nodeRooms.SequenceNumber = a.sequenceNumber.Add(1)
110 nodeRooms.Timestamp = timestamppb.Now()
111 if err := a.nodeRooms.Send(nodeRooms); err != nil {
112 logger.Errorw("failed to send node room states", err)
113 }
114}
115
116func (a *analyticsService) RoomProjectReporter(_ context.Context) roomobs.ProjectReporter {
117 return roomobs.NewNoopProjectReporter()

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected