Fix URLSession WebSocket client
- Commit
e3d89f036ed06840eafa2bb04eb68f70a38a3fc3- Author
- Kabir Oberai <[email protected]>
- When
- 2024-12-12 07:18 UTC (1 year ago)
- Parents
76df34f
Diff
Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift
diff --git a/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift b/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swiftindex dfa5de2..dbd0362 100644--- a/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift+++ b/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift@@ -144,6 +144,7 @@ private final class Client: HTTPClientProtocol { eventContinuation.finish() } }+ task.resume() let code = await event.first { _ in true } ?? nil if let code { throw Errors.webSocketClosed(code) } return WebSocketSessionWrapper(task: task)