socketcluster icon indicating copy to clipboard operation
socketcluster copied to clipboard

HTTP/2 Support

Open ayZagen opened this issue 7 years ago • 1 comments

Hello, when I try to use http/2 with socketcluster, clients cannot connect to sc with the http error 403. On the server side I get following error:

[Error] Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:162:27)

Websocket support is implemented in nodejs http2 module. See @nodejs/node#23284 However, ws module hasn't implemented it yet. See @websockets/ws#1458

Could you implement it on sc-uws ?

Thanks.

ayZagen avatar Dec 25 '18 16:12 ayZagen

@ayZagen SC has moved away from using sc-uws as the default. It's just too much effort to maintain; each node.js version requires new builds. uWS is an optimization for more advanced users.

I'd prefer to wait for the ws module to add it. Please let me know if you manage to get SC to work with HTTP2. Feel free to post recommendations here.

jondubois avatar Feb 26 '19 21:02 jondubois