I have a websocket server running to implement 'lobbies' which people can join and everyone has live feedback of who is in it and what they are doing.
I need to fetch data from third party servers using cURL inside the server instances. When certain data is found I push notifications to everyone in the lobby.
This data can be found at any time so I want to check every 10-20 seconds if new data is available.
How do you implement an async while loop in PHP?