Soketi + Laravel
Hello, I'm struggling to connect Soketi and Laravel. I have it working in a Docker container locally, but porting everything to Railway gives me
Pusher error: cURL error 7: Failed to connect
when hitting an endpoint that attempts to connect.
I've set Soketi to port 6001, but I don't know if I'm using the correct HOST in my env. I've tried combinations of localhost, 0.0.0.0, soketi with both http and https schemes but no luck.28 Replies
Project ID:
9a5465ad-1619-425d-bdcd-bb8ad5b7b25a
9a5465ad-1619-425d-bdcd-bb8ad5b7b25a
read this please https://docs.railway.app/troubleshoot/fixing-common-errors
Yeah I've gone through that doc and the multiple similar questions where you've posted that answer and it works for people, but unfortunately listening on 0.0.0.0 gives me the same error
you also need to listen on $PORT
Yeah the same one as set in the Soketi env variables, or the port it randomly choosees. Same error
soketi is just websockets right?
Yep
then it's definitely supported
are running the soketi and laravel apps on separate railway services?
Yes
how are you calling the soketi service from your laravel service?
like what URL are you using?
I've tried 0.0.0.0, localhost, soketi
![No description](https://cdn.answeroverflow.com/1163886820069748807/image.png)
well you would need to use the url of the soketi service
or since that doesn't look like it takes a url, use the services domain as the host, and 443 as the port
After deploying the Soketi service it provides a public networking url that I tried using as the host, and also says using
soketi
should allow communication within railwaydoes your soketi railway service have a domain?