Delete v2 signalling (#3835)

* Delete v2 signalling

* deps

* mage generate

* deelte unused file
This commit is contained in:
Raja Subramanian
2025-08-06 09:08:09 +05:30
committed by GitHub
parent 1fe337160a
commit 34a491309f
34 changed files with 156 additions and 2664 deletions
-36
View File
@@ -25,8 +25,6 @@ import (
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/pkg/rtc/types"
"google.golang.org/protobuf/proto"
)
func (p *ParticipantImpl) SetResponseSink(sink routing.MessageSink) {
@@ -332,37 +330,3 @@ func (p *ParticipantImpl) SendSubscriptionPermissionUpdate(publisherID livekit.P
}
return err
}
func (p *ParticipantImpl) SendConnectResponse(connectResponse *livekit.ConnectResponse) error {
// keep track of participant updates and versions
p.updateLock.Lock()
for _, op := range connectResponse.OtherParticipants {
p.updateCache.Add(livekit.ParticipantID(op.Sid), participantUpdateInfo{
identity: livekit.ParticipantIdentity(op.Identity),
version: op.Version,
state: op.State,
updatedAt: time.Now(),
})
}
p.updateLock.Unlock()
err := p.signaller.WriteMessage(p.signalling.SignalConnectResponse(connectResponse))
if err != nil {
return err
}
// update state after sending message, so that no participant updates could slip through before JoinResponse is sent
p.updateLock.Lock()
if p.State() == livekit.ParticipantInfo_JOINING {
p.updateState(livekit.ParticipantInfo_JOINED)
}
queuedUpdates := p.queuedUpdates
p.queuedUpdates = nil
p.updateLock.Unlock()
return p.SendParticipantUpdate(queuedUpdates)
}
func (p *ParticipantImpl) SignalPendingMessages() proto.Message {
return p.signalling.PendingMessages()
}