fix bugs with websocket reconnection, don't re-use redis sinks (#22)

This commit is contained in:
David Zhao
2021-02-15 17:57:01 -08:00
committed by GitHub
parent 9466bc01ed
commit 99baeb38e4
11 changed files with 268 additions and 219 deletions
+3 -2
View File
@@ -39,9 +39,10 @@ type Router interface {
ListNodes() ([]*livekit.Node, error)
// participant signal connection is ready to start
StartParticipantSignal(roomName, identity, metadata string, reconnect bool) (reqSink MessageSink, resSource MessageSource, err error)
StartParticipantSignal(roomName, identity, metadata string, reconnect bool) (connectionId string, reqSink MessageSink, resSource MessageSource, err error)
// sends a message to RTC node
SendRTCMessage(roomName, identity string, msg *livekit.RTCNodeMessage) error
CreateRTCSink(roomName, identity string) (MessageSink, error)
// when a new participant's RTC connection is ready to start
OnNewParticipantRTC(callback NewParticipantCallback)