diff --git a/Sources/LiveKit/Support/WebSocket.swift b/Sources/LiveKit/Support/WebSocket.swift index aa840a99a..1c6c628f6 100644 --- a/Sources/LiveKit/Support/WebSocket.swift +++ b/Sources/LiveKit/Support/WebSocket.swift @@ -32,6 +32,11 @@ class WebSocket: NSObject, Loggable, AsyncSequence, URLSessionWebSocketDelegate // explicitly set timeout intervals config.timeoutIntervalForRequest = TimeInterval(60) config.timeoutIntervalForResource = TimeInterval(604_800) + config.shouldUseExtendedBackgroundIdleMode = true + config.networkServiceType = .callSignaling + #if os(iOS) + config.multipathServiceType = .handover + #endif return URLSession(configuration: config, delegate: self, delegateQueue: nil) }()