-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect with wss #102
Comments
Hi @temclaugh,
Thanks for notifying! |
I look more deeply into the use case. The problem is that message-io uses WebSocket in Sorry for the inconvenience, I will notify it in the README. |
Hi @lemunozm, thanks for looking into this! I’m wondering if it’s possible that this is related to TLS specifically?
Output:
It looks like something might be going wrong during the handshake. |
Thanks for the detailing the error. You are right, it's a problem to the whole wss indendently of the text/binary modes. I was looking into it and after making the TCP connection, it sends a HTTP request (used for plain WS) instead of a TLS hello (used for WSS). So it tries to connect a normal socket to the tipical WSS port 443 and the server refused the connection. It's a bug, and I think it is not fast fordward to resolve, because seems that tungstenite do not add the TLS layer automatically for you when connect with I hope to fix it in the future, but I cannot promise in a near future. For now, I will remove it as a feature of So sorry the inconvenience :( and thanks to notify the error |
Is this something which will still be addressed ? |
I'm currently in maintenance mode on this repo. By now, I'm not developing new features. Sorry! |
Tungstenite has the client_tls() method, which automatically adds a TLS layer if needed. Could that be used to solve the issue? |
Maybe that can be used to implement the adapter with TLS support 👍🏻 |
I can't manage to establish wss connections using message-io version 0.14.2 on macOS Big Sur. Example:
Output:
However, I can connect with wss using websocat from the same machine:
It looks like it's hitting this code path in the ws adapter:
Would appreciate guidance if I'm doing something incorrectly. Thanks!
The text was updated successfully, but these errors were encountered: