A
A
Alex Wells2018-10-22 18:21:35
Nginx
Alex Wells, 2018-10-22 18:21:35

Chrome on HTTP/2 with websockets over http/1?

Hello. There is an nginx config on lets encrypt ssl, http2 and a websocket server along the /socketcluster path, where http1 is forced using the proxy_http_version 1.1;. Actually, in firefox everything works as expected - all requests are http/2, connection to web sockets is http/1. Chrome doesn't like this.

WebSocket connection to 'wss://domain/socketcluster' failed: Error in connection establishment: net::ERR_NOT_IMPLEMENTED

How to solve this problem? We will not get http/2 for sockets soon, since neither chrome nor socketcluster supports it, and chrome breaks through it, although it was said through http 1.1.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question