Support MSC4143 RTC Transport endpoint#3629
Conversation
…nsports before response.
|
This needs more coverage. |
Yup! Working through it |
|
In other words: I am not sure if:
is actually happening. Are we really continuing to check well-known transports if backend transports fail? |
That was my intention yes, but seeing as it wasn't clear this needs more comments on the PR. |
…ver-rtc-transport
| // https://github.com/element-hq/element-call/issues/3344 | ||
| // The app used to request a new jwt token then to reconnect to the SFU | ||
| expect(wsConnectionCount).toBe(1); | ||
| expect(sfuGetCallCount).toBe(2 /* the first one is for the warmup */); |
There was a problem hiding this comment.
Removed this test because livekit/jwt/sfu/get is called whenever we just want to validate a transport, which unfortunately happens every time we instantiate LocalTransport, which seems to happen a few times over this call.
The websocket connection test should be enough here as it still tests we aren't making any reconnections.
This implements MSC4143's backend endpoint for transports, and uses matrix-org/matrix-js-sdk#5104 to handle it.
This changes makeTransport to: