handles RTC join

This commit is contained in:
David Zhao
2020-10-31 00:09:46 -07:00
parent 36dd195ca3
commit 54b59f00e2
6 changed files with 170 additions and 42 deletions
+2
View File
@@ -52,6 +52,8 @@ func (r *Room) ToRoomInfo(node *livekit.Node) *livekit.RoomInfo {
}
func (r *Room) Join(peerId string, token string, sdp string) (peer *WebRTCPeer, err error) {
// TODO: check token and reject
r.lock.Lock()
defer r.lock.Unlock()