Roman Vasilyev
01/03/2021, 9:29 PMcy
01/04/2021, 8:22 AMcy
01/04/2021, 8:29 AMRoman Vasilyev
01/04/2021, 8:31 AMRoman Vasilyev
01/04/2021, 8:32 AMcy
01/04/2021, 8:34 AMcy
01/04/2021, 8:36 AMRoman Vasilyev
01/04/2021, 8:36 AMFoundation
only, which is part of iOS and MacOsRoman Vasilyev
01/04/2021, 8:36 AMRoman Vasilyev
01/04/2021, 8:37 AMRoman Vasilyev
01/04/2021, 8:37 AMRoman Vasilyev
01/04/2021, 8:39 AMRoman Vasilyev
01/04/2021, 8:54 AMpublic convenience init(request: URLRequest, certPinner: CertificatePinning? = FoundationSecurity(), compressionHandler: CompressionHandler? = nil, useCustomEngine: Bool = true) {
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *), !useCustomEngine {
self.init(request: request, engine: NativeEngine())
} else if #available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *) {
self.init(request: request, engine: WSEngine(transport: TCPTransport(), certPinner: certPinner, compressionHandler: compressionHandler))
} else {
self.init(request: request, engine: WSEngine(transport: FoundationTransport(), certPinner: certPinner, compressionHandler: compressionHandler))
}
}
cy
01/04/2021, 12:11 PMRoman Vasilyev
01/04/2021, 6:42 PMRoman Vasilyev
01/04/2021, 6:58 PMktor/ktor-client/ktor-client-ios/darwin/src/io/ktor/client/engine/ios/
Roman Vasilyev
01/04/2021, 6:58 PMIosWebSocket.kt
in this folder will be ok?Roman Vasilyev
01/04/2021, 7:07 PMktor/ktor-client/ktor-client-cio/common/src/io/ktor/client/engine/
?Roman Vasilyev
01/05/2021, 5:59 PMcy
01/05/2021, 6:14 PMcy
01/05/2021, 6:14 PMRoman Vasilyev
01/05/2021, 6:15 PMRoman Vasilyev
01/06/2021, 9:59 PMRoman Vasilyev
01/07/2021, 12:56 AM