io
io copied to clipboard
Allow passing Client instead of HttpClient to IOWebSocketChannel.connect
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?