WebSocket with SSL
Asked 07 September, 2021
Viewed 1.5K times
  • 50
Votes

Is it possible to have WebSockets with HTTPS?

When switching to HTTPS, my WebSocket returns a security error and works perfectly with regular HTTP.

Below, a snippet;

socket = new WebSocket("ws://my_www:1235"); 

4 Answer