Add GetClientInfo interface, to be used to decide migration vs full-reconenct (#1827)
This commit is contained in:
@@ -279,6 +279,12 @@ func (p *ParticipantImpl) ConnectedAt() time.Time {
|
||||
return p.connectedAt
|
||||
}
|
||||
|
||||
func (p *ParticipantImpl) GetClientInfo() *livekit.ClientInfo {
|
||||
p.lock.RLock()
|
||||
defer p.lock.RUnlock()
|
||||
return p.params.ClientInfo.ClientInfo
|
||||
}
|
||||
|
||||
func (p *ParticipantImpl) GetClientConfiguration() *livekit.ClientConfiguration {
|
||||
p.lock.RLock()
|
||||
defer p.lock.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user