Add back ServerRegion and ServerVersion (#1650)

clients are still dependent on them
This commit is contained in:
David Zhao
2023-04-23 23:10:00 -07:00
committed by GitHub
parent 1cb189a3dd
commit 279b3604c3
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -761,9 +761,11 @@ func (r *Room) createJoinResponseLocked(participant types.LocalParticipant, iceS
SubscriberPrimary: participant.SubscriberAsPrimary(),
ClientConfiguration: participant.GetClientConfiguration(),
// sane defaults for ping interval & timeout
PingInterval: 10,
PingTimeout: 20,
ServerInfo: r.serverInfo,
PingInterval: 10,
PingTimeout: 20,
ServerInfo: r.serverInfo,
ServerVersion: r.serverInfo.Version,
ServerRegion: r.serverInfo.Region,
}
}