Closed moskvin closed 5 years ago
Yes, because Ruby URI doesn't understand "wss". In fact, I don't know any part of the protocol that uses "wss" except that it's mandated (?) by browsers, but there is no technical reason why it should be the case, because WebSocket must by nature use HTTP initially and then issue upgrade: websocket
request. In fact, it's even more confusing because for HTTP/2, it's definitely HTTP protocol. There is no actual "ws" or "wss" protocol, or even scheme, or connection, it's just HTTP until you upgrade the connection (HTTP/1) or issue CONNECT
with :protocol: websocket
(HTTP/2). The entire time it's still speaking HTTP. ¯\_(ツ)_/¯
Also there are a bunch of changes coming to support websockets via HTTP/1 and HTTP/2. It's still a work in progress though, but hopefully released this week.
Thank you!
Okay the latest release is available, it supports both HTTP/1 and HTTP/2. The negotiation features still need some work but it's functional.
Can you help me to fix following crash:
Do I understand correctly, that now I have to use
https://
instead ofwss://
?