Skip to content

Commit a71f91e

Browse files
authored
Add uploaders config option
Signed-off-by: Carson Katri <[email protected]>
1 parent 737a519 commit a71f91e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/LiveViewNative/Coordinators/LiveSessionConfiguration.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public struct LiveSessionConfiguration {
3636

3737
public var eventConfirmation: ((String, ElementNode) async -> Bool)?
3838

39+
public var uploaders: [String:any Uploader] = [:]
40+
3941
/// Constructs a default, empty configuration.
4042
public init() {
4143
}
@@ -46,14 +48,16 @@ public struct LiveSessionConfiguration {
4648
urlSessionConfiguration: URLSessionConfiguration = .default,
4749
transition: AnyTransition? = nil,
4850
reconnectBehavior: ReconnectBehavior = .exponential,
49-
eventConfirmation: ((String, ElementNode) async -> Bool)? = nil
51+
eventConfirmation: ((String, ElementNode) async -> Bool)? = nil,
52+
uploaders: [String:any Uploader] = [:]
5053
) {
5154
self.headers = headers
5255
self.connectParams = connectParams
5356
self.urlSessionConfiguration = urlSessionConfiguration
5457
self.transition = transition
5558
self.reconnectBehavior = reconnectBehavior
5659
self.eventConfirmation = eventConfirmation
60+
self.uploaders = uploaders
5761
}
5862

5963
public struct ReconnectBehavior: Sendable {

0 commit comments

Comments
 (0)