Added the "transport" argument to the init()" initializer for the AmiiboLiveClient client in the library target.

This commit is contained in:
2025-10-02 03:40:23 +02:00
parent cca7c21eff
commit 07cfa1e4e4
@@ -25,12 +25,13 @@ public struct AmiiboLiveClient: Sendable {
// MARK: Initializers
/// Initializes this client.
public init() {
/// - Parameter transport: A transport that performs HTTP operations.
public init(transport: any ClientTransport = URLSessionTransport()) {
self.client = .init(
// The force unwrapping implemented below assumes that the server definition from the OpenAPI specification is correct.
serverURL: try! Servers.Server1.url(),
configuration: .init(dateTranscoder: ISOTimestampTranscoder()),
transport: URLSessionTransport()
transport: transport
)
}