decouple websocket and RTC nodes, prep for distributed

This commit is contained in:
David Zhao
2021-01-16 10:37:38 -08:00
parent 9a10a57b30
commit 9064f6ade1
61 changed files with 2683 additions and 1361 deletions
+8 -1
View File
@@ -5,8 +5,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/livekit/livekit-server/pkg/routing/routingfakes"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/rtc/types/typesfakes"
"github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/livekit-server/proto/livekit"
)
@@ -67,6 +69,11 @@ func TestTrackPublishEvents(t *testing.T) {
}
func newParticipantForTest(name string) *ParticipantImpl {
p, _ := NewParticipant(&typesfakes.FakePeerConnection{}, &typesfakes.FakeSignalConnection{}, name, ReceiverConfig{})
p, _ := NewParticipant(
utils.NewGuid(utils.ParticipantPrefix),
name,
&typesfakes.FakePeerConnection{},
&routingfakes.FakeMessageSink{},
ReceiverConfig{})
return p
}