Skip to content

Commit

Permalink
update websocket URLSessionConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Dec 25, 2023
1 parent f587f36 commit 3c0e5ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/LiveKit/Support/WebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}()

Expand Down

0 comments on commit 3c0e5ca

Please sign in to comment.