File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Sources/LiveViewNative/Coordinators Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments