MCPcopy
hub / github.com/livekit/livekit / AddObserver

Method AddObserver

pkg/rtc/types/interfaces.go:902–902  ·  view source on GitHub ↗
(key string, onChanged func())

Source from the content-addressed store, hash-verified

900
901type ChangeNotifier interface {
902 AddObserver(key string, onChanged func())
903 RemoveObserver(key string)
904 HasObservers() bool
905 NotifyChanged()

Callers 3

subscribeMethod · 0.65
subscribeDataTrackMethod · 0.65
TestUnsubscribeFunction · 0.65

Implementers 1

ChangeNotifierpkg/utils/changenotifier.go

Calls

no outgoing calls

Tested by 1

TestUnsubscribeFunction · 0.52