Environment
First of all, I'm using AWS ALB, EC2 with Route 53. ALB is opened for HTTP, HTTPS and EC2 is also opened for All TCP.
And I'm using ws
library to use websocket.
As an HTTPS server
In the EC2 instance, when I run an HTTPS server which shows "hello world"
as a text, it works well in a client using https://
.
As an websocket server
However when I run an websocket server instead of HTTPS server and try to connect to that from a client, the below error occurs:
WebSocket connection to 'wss://[host]/' failed
As a side note, in a client using http://
, connecting to ws://[same hostname]
works well.
What should I check? PLEASE HELP ME!