mirror of
https://github.com/livekit/livekit.git
synced 2026-08-27 22:34:25 +00:00
Add back ServerRegion and ServerVersion (#1650)
clients are still dependent on them
This commit is contained in:
+5
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -678,8 +678,8 @@ func TestRoomUpdate(t *testing.T) {
|
||||
|
||||
// p1 should have received an update
|
||||
time.Sleep(2 * defaultDelay)
|
||||
require.Equal(t, 1, p1.SendRoomUpdateCallCount())
|
||||
require.EqualValues(t, 2, p1.SendRoomUpdateArgsForCall(0).NumParticipants)
|
||||
require.GreaterOrEqual(t, p1.SendRoomUpdateCallCount(), 1)
|
||||
require.EqualValues(t, 2, p1.SendRoomUpdateArgsForCall(p1.SendRoomUpdateCallCount()-1).NumParticipants)
|
||||
})
|
||||
|
||||
t.Run("participants should receive metadata update", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user