The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SignalRClient, reference v1.0.0 (1a2732), with Swift 6.4 for Wasm on 24 Sep 2026 06:03:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dotnet/signalr-client-swift.git
Reference: v1.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/dotnet/signalr-client-swift
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at 1a27323 Release 1.0.0 (#104)
Cloned https://github.com/dotnet/signalr-client-swift.git
Revision (git rev-parse @):
1a27323e478ad75dc8383a11f0c5d5cce62afc6e
SUCCESS checkout https://github.com/dotnet/signalr-client-swift.git at v1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/dotnet/signalr-client-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/SignalRClient/AsyncLock.swift:7:16: error: cannot find 'DispatchSemaphore' in scope
 5 |
 6 | class AsyncLock {
 7 |     let lock = DispatchSemaphore(value: 1)
   |                `- error: cannot find 'DispatchSemaphore' in scope
 8 |     private var isLocked = false
 9 |     private var waitQueue: [CheckedContinuation<Void, Never>] = []
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | actor DefaultHttpClient: HttpClient {
 59 |     private let logger: Logger
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     init(logger: Logger) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:158:50: error: cannot find type 'URLRequest' in scope
156 |
157 | extension HttpRequest {
158 |     fileprivate func buildURLRequest() throws -> URLRequest {
    |                                                  `- error: cannot find type 'URLRequest' in scope
159 |         guard let url = URL(string: self.url) else {
160 |             throw SignalRError.invalidUrl(self.url)
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:24: error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                        `- error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:536:135: error: cannot find type 'URLRequest' in scope
534 |     }
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
    |                                                                                                                                       `- error: cannot find type 'URLRequest' in scope
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
538 |         urlRequest.httpMethod = method ?? "GET"
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:747:28: error: cannot find 'DispatchSemaphore' in scope
745 |
746 |     private struct DefaultInvocationBinder: InvocationBinder, @unchecked Sendable {
747 |         private let lock = DispatchSemaphore(value: 1)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
748 |         private var subscriptionHandlers: [String: SubscriptionEntity] = [:]
749 |         private var returnValueHandler: [String: Any.Type] = [:]
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:20:33: error: cannot find type 'DispatchWorkItem' in scope
 18 |     private var waitForSequenceMessage: Bool = false;
 19 |
 20 |     private var ackTimerHandle: DispatchWorkItem?
    |                                 `- error: cannot find type 'DispatchWorkItem' in scope
 21 |
 22 |     private var hubProtocol: HubProtocol;
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:7:25: error: cannot find 'DispatchQueue' in scope
 5 |
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
   |                         `- error: cannot find 'DispatchQueue' in scope
 8 |     private var timer: DispatchSourceTimer?
 9 |     private var interval: TimeInterval
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:8:24: error: cannot find type 'DispatchSourceTimer' in scope
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
 8 |     private var timer: DispatchSourceTimer?
   |                        `- error: cannot find type 'DispatchSourceTimer' in scope
 9 |     private var interval: TimeInterval
10 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:17:30: error: cannot find type 'URLSessionDataDelegate' in scope
 15 | //  1. Reconnect, last Id
 16 | //  2. event name, event handlers
 17 | class EventSource: NSObject, URLSessionDataDelegate {
    |                              `- error: cannot find type 'URLSessionDataDelegate' in scope
 18 |     private let url: URL
 19 |     private let headers: [String: String]
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private var completeHandler: ((Int?, Error?) -> Void)?
 23 |     private var messageHandler: ((String) -> Void)?
 24 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |
 26 |     init(url: URL, headers: [String: String]?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:69:29: error: cannot find type 'URLRequest' in scope
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 70 |         completionHandler: @escaping (URLRequest?) -> Void
 71 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:70:39: error: cannot find type 'URLRequest' in scope
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
    |                                       `- error: cannot find type 'URLRequest' in scope
 71 |     ) {
 72 |         var newRequest = request
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:66:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     // MARK: redirect
 65 |     public func urlSession(
 66 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:67:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     public func urlSession(
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:68:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:83:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
    |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 84 |             -> Void
 85 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:81:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:81:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
 84 |             -> Void
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:96:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:96:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:106:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:106:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift:117:32: error: cannot find type 'DispatchQueue' in scope
115 |
116 |     private var eventSource: EventSource?
117 |     private var dispatchQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
118 |     private var messageTask: Task<Void, Never>?
119 |     private var messageStream: AsyncStream<String>?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:73:31: error: cannot find type 'URLRequest' in scope
 71 |
 72 |     protocol WebSocketConnection {
 73 |         func connect(request: URLRequest, transferFormat: TransferFormat) async throws
    |                               `- error: cannot find type 'URLRequest' in scope
 74 |         func send(_ data: StringOrData) async throws
 75 |         func stop(error: Error?) async throws
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:104:82: error: cannot find type 'URLSessionWebSocketDelegate' in scope
102 |         }
103 |     #else
104 |         private actor DefaultWebSocketConnection: NSObject, WebSocketConnection, URLSessionWebSocketDelegate {
    |                                                                                  `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
105 |             private let logger: Logger
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:108:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
107 |
108 |             private var urlSession: URLSession?
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |             private var websocket: URLSessionWebSocketTask?
110 |             private var receiveTask: Task<Void, Never>?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:109:36: error: cannot find type 'URLSessionWebSocketTask' in scope
107 |
108 |             private var urlSession: URLSession?
109 |             private var websocket: URLSessionWebSocketTask?
    |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
110 |             private var receiveTask: Task<Void, Never>?
111 |             private var onReceive: OnReceiveHandler?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:120:35: error: cannot find type 'URLRequest' in scope
118 |             }
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
    |                                   `- error: cannot find type 'URLRequest' in scope
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:178:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:178:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:79: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:128: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:195:79: error: cannot find type 'URLSessionWebSocketTask' in scope
193 |             }
194 |
195 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:195:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |             }
194 |
195 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/SignalRClient/AsyncLock.swift /host/spi-builder-workspace/Sources/SignalRClient/AtomicState.swift /host/spi-builder-workspace/Sources/SignalRClient/ConnectionProtocol.swift /host/spi-builder-workspace/Sources/SignalRClient/HandshakeProtocol.swift /host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift /host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift /host/spi-builder-workspace/Sources/SignalRClient/HubConnection+On.swift /host/spi-builder-workspace/Sources/SignalRClient/HubConnection+OnResult.swift /host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift /host/spi-builder-workspace/Sources/SignalRClient/HubConnectionBuilder.swift /host/spi-builder-workspace/Sources/SignalRClient/InvocationBinder.swift /host/spi-builder-workspace/Sources/SignalRClient/Logger.swift /host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/BinaryMessageFormat.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/HubMessage.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/HubProtocol.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/JsonHubProtocol.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/MessagePackHubProtocol.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/MessageType.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/Msgpack/MsgpackCommon.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/Msgpack/MsgpackDecoder.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/Msgpack/MsgpackEncoder.swift /host/spi-builder-workspace/Sources/SignalRClient/Protocols/TextMessageFormat.swift /host/spi-builder-workspace/Sources/SignalRClient/RetryPolicy.swift /host/spi-builder-workspace/Sources/SignalRClient/SignalRError.swift /host/spi-builder-workspace/Sources/SignalRClient/StatefulReconnectOptions.swift /host/spi-builder-workspace/Sources/SignalRClient/StreamResult.swift /host/spi-builder-workspace/Sources/SignalRClient/TaskCompletionSource.swift /host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift /host/spi-builder-workspace/Sources/SignalRClient/TransferFormat.swift /host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift /host/spi-builder-workspace/Sources/SignalRClient/Transport/LongPollingTransport.swift /host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift /host/spi-builder-workspace/Sources/SignalRClient/Transport/Transport.swift /host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift /host/spi-builder-workspace/Sources/SignalRClient/Utils.swift /host/spi-builder-workspace/Sources/SignalRClient/Version.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SignalRClient -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/Objects-normal/wasm32/SignalRClient_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/Objects-normal/wasm32/Modules/SignalRClient.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/Objects-normal/wasm32/Modules/SignalRClient.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/Objects-normal/wasm32/SignalRClient-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/Objects-normal/wasm32/SignalRClient-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/Objects-normal/wasm32/SignalRClient-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SignalRClient.build/Debug-webassembly-wasm32/SignalRClient-t.build/Objects-normal/wasm32/Modules/SignalRClient.swiftmodule
[27 / 35] SignalRClient
error: Build failed
BUILD FAILURE 6.4 wasm