Split out SignalHandler to simplify testing (#250)

This commit is contained in:
David Zhao
2021-12-10 13:12:45 -08:00
committed by GitHub
parent 882f3bdde5
commit d342335d09
5 changed files with 380 additions and 125 deletions
+4
View File
@@ -82,6 +82,10 @@ func NewRoom(room *livekit.Room, config WebRTCConfig, audioConfig *config.AudioC
return r
}
func (r *Room) Name() string {
return r.Room.Name
}
func (r *Room) GetParticipant(identity string) types.Participant {
r.lock.RLock()
defer r.lock.RUnlock()