3 ms·
I'm a php & mysql -dev and still can't understand these websockets. What if I have a cron job that sends messages to this websocket server and it pushes them to
by anonymous344 4y ago
I'm a php & mysql -dev and still can't understand these websockets.
What if I have a cron job that sends messages to this websocket server and it pushes them to web-app (vue front, added to home screen on mobile phone, not an installed app) push notification.
How this can be done ?
and how can the server even keep up with the websocket connections to thousands of clients ? does the websocket re-open if user restarts their phone?
- ergo14 4y agoTry https://channelstream.org/ https://channelstream.org/ - you can talk via rest calls to it - it scales up to thousands of connections on a single small machine. You have tiny JS WS/long pool clients available with reconnection logic or you can roll your own if you like.