io icon indicating copy to clipboard operation
io copied to clipboard

Allow passing Client instead of HttpClient to IOWebSocketChannel.connect

Open Malnen opened this issue 1 year ago • 0 comments

Hi In our project we use CronetHttp for the http request because HttpClient does not trust the user-added CA on the device and Cronet does. For all http requests everything works fine, but in one place in our application we create a webSocket connection using IOWebSocketChannel.connect. It can accept a custom HttpClient, but the CronetClient.fromCronetEngine method returns Client instead, so we can't pass it here. Can we ask you to add the ability to pass Client to websocketChannel? Or is there another way to create a webSocket channel that trusts a user-added CA?

Malnen avatar Feb 15 '24 12:02 Malnen