Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

7
Connecting two PHP servers with Sockets
Post Flair (click to view more posts with a particular flair)
Post Body

Hello, my question may be a little bit stupid because I have no experience at all on using websockets.

I need to stabilish a connection between two PHP servers using Laravel, it works this way :

I have a central server, wich works as an API that will update every 10 minutes, but it can also update anytime if some changes are needed, and I need this change to be reflected instantly into other "Client Servers"

I tried doing it with websockets using laravel-websockets, redis, pusher and a bunch of other stuff on the central server, and all worked fine.
But every single tutorial I see on the internet uses like SocketIO or Laravel Echo wich both are js solutions, I need to listen to these events without using a browser, no front-ends involved

How Can I achieve this? really need help
Sorry for any english errors as it's not my primary language

Author
Account Strength
100%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
19,518
Link Karma
7,865
Comment Karma
11,336
Profile updated: 1 day ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago