shokai / websocket-client-simple

Simple WebSocket Client on Ruby
https://rubygems.org/gems/websocket-client-simple
MIT License
115 stars 68 forks source link

setting the host name to work with SNI #20

Closed skierkowski closed 2 years ago

skierkowski commented 8 years ago

In order for the SSL Socket to work with SNI the hostname has to be set on the socket.

More info: http://stackoverflow.com/a/34153381

cywinskikamil commented 6 years ago

That's what I need!

alexander-makarenko commented 4 years ago

I need it as well. Without it I get the following error:

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: tlsv1 alert internal error)

The reason is that hostname verification is enabled in OpenSSL by default, which requires the hostname attribute to be set on OpenSSL::SSL::SSLSocket before the connect method is called.

unasuke commented 2 years ago

@skierkowski This repository was moved ruby-jp/websocket-client-simple. If you still need this, make pull request or issue to ruby-jp/websocket-client-simple again, thx.

(But we need this patch. We will make a new release including this patch soon maybe.)