We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5d96a1 commit 6800a75Copy full SHA for 6800a75
1 file changed
ios/RNGrpc.swift
@@ -14,7 +14,7 @@ typealias GrpcCall = any ClientCall
14
15
@objc(Grpc)
16
class RNGrpc: RCTEventEmitter {
17
- private let group: EventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)
+ private let group = PlatformSupport.makeEventLoopGroup(loopCount: System.coreCount)
18
19
var grpcInsecure = false
20
var grpcHost: String?
@@ -362,7 +362,7 @@ class RNGrpc: RCTEventEmitter {
362
363
var config = GRPCChannelPool.Configuration.with(
364
target: .hostAndPort(host, port),
365
- transportSecurity: self.grpcInsecure ? .plaintext : .tls(.makeClientConfigurationBackedByNIOSSL()),
+ transportSecurity: self.grpcInsecure ? .plaintext : .tls(.makeClientDefault(compatibleWith: self.group)),
366
eventLoopGroup: self.group
367
)
368
0 commit comments