Chat with WSS on AWS Lightsail

Viewed 128

I built chat functions with Ratchet/Laravel. It works well on local I figured out the SSL too.

Websocket with laravel

But after deploying on AWS/Lightsail, WSS is not working. I think there is some configuration required to make WebSocket work on AWS or Lightsail.

1 Answers

I am currently experiencing the same issue. I believe it is due to the fact that the lightsail load balancer only supports HTTP(S), while WSS is a different protocol. I believe that if you setup a load balancer from regular AWS (without Lightsail), it will work.

Related