I recently found out about websockets, which seem to be the best alternative for letting the client (iOS app in my case) receive new data in real-time.
I'm a relatively new Swift developer, so I know absolutely nothing about websockets, Node.js or JavaScript, three things that seem to be kind of important when using Socket.IO
.
It's discouraging to see there are absolutely ZERO resources online for JavaScript-noobs like myself. All the tutorials I found only demonstrate how to set up a Chat room in some sort of localhost server in Node.js.
The tutorial that came closest to what I was looking for was this Appcoda tutorial, but even that one only demonstrates how to make your client communicate with yet another localhost server.
Can someone explain to me how I can configure a web socket on an actual server (the same server I use for retrieving and storing data with PHP), or is this not possible?
Some better resources on how to set up an actual server-client connection are also welcome, instead of these vague localhost demo's.