This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| class AuthImpl { | |
| // Simply used instead of CancellationError to easily distinguish cancellation status | |
| enum TaskResult { | |
| case response(String) | |
| case cancelled | |
| } | |
| typealias Continuation = CheckedContinuation<TaskResult, Never> | |
| enum RequestState { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import Combine | |
| public enum WebSocketError: Swift.Error { | |
| case alreadyConnectedOrConnecting | |
| case notConnected | |
| case cannotParseMessage(String) | |
| } | |
| public extension WebSocket { |