Laravel Echo Server with Socket.io on production not receiving events.
This ones gonna be kind of general and tough to explain but i'm tearing my hair out for days so I figured i'd see if anyone else had this issue.
I have Laravel Echo/Laravel Echo Server/Socket.io running locally on Homestead working perfectly.
Ok so time to deploy to a testing server off my VM for the first time:
I have an AWS instance running that i'm going to put this one.
The application itself works fine, but I can not get echo working.
I have the whole set up working, the websocket is authenticated via SSL and connected on port 6001, basically the page is listening.
The interesting thing I noticed off the bat:
Here's the output when starting LES on homestead:
✔ Running at localhost on port 6001
✔ Channels are ready.
✔ Listening for http events...
✔ Listening for redis events...
Here's the output on AWS:
✔ Running at localhost on port 6001
✔ Listening for http events...
✔ Listening for redis events...
Why is the "Channels are ready." output not there?
Also interesting here is some debugging from the page connecting to the channel from Homestead:
[22:57:21] - XXXXXXROOMIDORWHATEVER authenticated for: private-alerts.add.1
socket.io:socket joining room private-alerts.add.1 +812ms
[22:57:21] - XXXXXXROOMIDORWHATEVER joined channel: private-alerts.add.1
socket.io:socket joined room private-alerts.add.1 +0ms
And here it is from AWS (Notice the other lines missing):
socket.io:socket joining room private-alerts.add.1 +168ms
socket.io:socket joined room private-alerts.add.1 +0ms
I have no idea where to being looking. The events are firing and being successfully processed by horizon, but the LES or Socket.io is either not picking up on it or not connected to the channel correctly.
I don't know what the disconnect is.
Anyone ever have a similar issue?
P.S: This is a private channel and the auth is working otherwise I wouldn't have a 101 status on the websocket. So I don't know why the auth message isn't showing up when loading the page.
Please or to participate in this conversation.