Friday, 17 June 2022
  1 Replies
  1.3K Visits
  Subscribe
Hello!

I was testing the compiled websocket client demo project to connect to a websocket server using tls.
Without tls it is working fine, with tls and both ports 80 and 443 it fails with the following messages:

#exception: Error connecting with SSL.
EOF was observed that violates the protocol

Is it possible to connect to servers with wss:// ... that use up to date websocket protocol and basic authentication (and custom headers)?

It would be nice to have this directly in delphi code.
2 years ago
·
#1115
Hello ,

You get this exception because the server requires TLS 1.2 and most probably the client is using TLS 1.0 Just set TLS to 1.2 and it should work


TsgcWebSocketClient1.TLSOptions.Version := tls1_2;


Yes, you can connect to wss servers, use basic authentication and add custom headers.

Kind Regards,
Sergio
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below.
Supported: gif,jpg,png,jpeg,zip,rar,pdf,pas,dfm,dpr,dproj,dpk
· Insert · Remove
  Upload Files (Maximum 10MB)