simple cli with room APIs
This commit is contained in:
@@ -3,6 +3,7 @@ package rtc
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrRoomIdMissing = errors.New("roomId is not set")
|
||||
ErrPeerExists = errors.New("peer already exists")
|
||||
ErrPeerNotConnected = errors.New("peer has not been connected")
|
||||
ErrUnsupportedPayloadType = errors.New("peer does not support payload type")
|
||||
|
||||
@@ -28,6 +28,10 @@ func NewRoomForRequest(req *livekit.CreateRoomRequest, config *WebRTCConfig) (*R
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if req.RoomId == "" {
|
||||
return nil, ErrRoomIdMissing
|
||||
}
|
||||
|
||||
return &Room{
|
||||
Room: livekit.Room{
|
||||
RoomId: req.RoomId,
|
||||
|
||||
Reference in New Issue
Block a user