Server-side workaround for JS SDK's inability to handle ReconnectResponse (#1367)

See: https://github.com/livekit/client-sdk-js/pull/568
This commit is contained in:
David Zhao
2023-02-01 15:37:18 -08:00
committed by GitHub
parent ffadb94e3a
commit 8ba6418ab4
3 changed files with 38 additions and 24 deletions
+3
View File
@@ -175,6 +175,9 @@ func (p *ParticipantImpl) SendRefreshToken(token string) error {
}
func (p *ParticipantImpl) SendReconnectResponse(reconnectResponse *livekit.ReconnectResponse) error {
if !p.params.ClientInfo.CanHandleReconnectResponse() {
return nil
}
return p.writeMessage(&livekit.SignalResponse{
Message: &livekit.SignalResponse_Reconnect{
Reconnect: reconnectResponse,