R
Railway11mo ago
Joel

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
Percy
Percy11mo ago
Project ID: 9a5465ad-1619-425d-bdcd-bb8ad5b7b25a
Joel
Joel11mo ago
9a5465ad-1619-425d-bdcd-bb8ad5b7b25a
Joel
Joel11mo ago
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
Brody
Brody11mo ago
you also need to listen on $PORT
Joel
Joel11mo ago
Yeah the same one as set in the Soketi env variables, or the port it randomly choosees. Same error
Brody
Brody11mo ago
soketi is just websockets right?
Joel
Joel11mo ago
Yep
Brody
Brody11mo ago
then it's definitely supported are running the soketi and laravel apps on separate railway services?
Joel
Joel11mo ago
Yes
Brody
Brody11mo ago
how are you calling the soketi service from your laravel service? like what URL are you using?
Joel
Joel11mo ago
I've tried 0.0.0.0, localhost, soketi
No description
Brody
Brody11mo ago
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
Joel
Joel11mo ago
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 railway
Brody
Brody11mo ago
does your soketi railway service have a domain?
Want results from more Discord servers?
Add your server