MCPcopy Index your code
hub / github.com/livekit/livekit / SetAttributes

Method SetAttributes

test/client/client.go:858–866  ·  view source on GitHub ↗
(attrs map[string]string)

Source from the content-addressed store, hash-verified

856}
857
858func (c *RTCClient) SetAttributes(attrs map[string]string) error {
859 return c.SendRequest(&livekit.SignalRequest{
860 Message: &livekit.SignalRequest_UpdateMetadata{
861 UpdateMetadata: &livekit.UpdateParticipantMetadata{
862 Attributes: attrs,
863 },
864 },
865 })
866}
867
868func (c *RTCClient) hasPrimaryEverConnected() bool {
869 if c.subscriberAsPrimary.Load() {

Callers

nothing calls this directly

Calls 1

SendRequestMethod · 0.95

Tested by

no test coverage detected