Closed xVanTuring closed 1 month ago
The NIOSSLHandler
fires a user event down the channel pipeline when it completes the handshake: specifically, it fires one of these two depending on the outcome. You can see an example of how it is used in grpc-swift.
I'm currently try to add NIOSSL(Client/Server)Handler dynamically, after received first custom identity data. I was able to use
channel.pipeline.addHandler
to do that, but I could find a way to get notified when the handshake is completed.I noticed that in
NIOHTTP1
, we have aconfigureUpgradableHTTPClientPipeline
extension function which will return a upgrade result. Can we provide something like that?