Open AhmMhd opened 1 month ago
I am trying to open a websocket connection using okhttp + cronet. It's failing every time with following exception:
java.io.IOException: java.util.concurrent.ExecutionException: m.mc: Exception in CronetUrlRequest: net::ERR_INVALID_HTTP_RESPONSE, ErrorCode=11, InternalErrorCode=-370, Retryable=false
my okhttp clinet: val webSocket = OkHttpClient.Builder() .addInterceptor(CronetInterceptor.newBuilder(cronetEngine).build())
val webSocket = OkHttpClient.Builder() .addInterceptor(CronetInterceptor.newBuilder(cronetEngine).build())
My connection works if i remove CronetInterceptor. Can anyone confirm is cronet supports websocket connections?
Hi,
I'm afraid Cronet does not support WebSocket. Therefore the OkHttp Cronet transport doesn't support it either.
I am trying to open a websocket connection using okhttp + cronet. It's failing every time with following exception:
java.io.IOException: java.util.concurrent.ExecutionException: m.mc: Exception in CronetUrlRequest: net::ERR_INVALID_HTTP_RESPONSE, ErrorCode=11, InternalErrorCode=-370, Retryable=false
my okhttp clinet:
val webSocket = OkHttpClient.Builder() .addInterceptor(CronetInterceptor.newBuilder(cronetEngine).build())
My connection works if i remove CronetInterceptor. Can anyone confirm is cronet supports websocket connections?