Ok, I have tried reading some articles, but I am not very clear on the concepts yet.
Would someone like to take a shot at explaining me what these technologies are -
- Long Polling
- Server-Sent Event
- Websockets
- Commet
One thing that I came across everytime was, the server keeps a connection open and pushes data to the client. How is the connection kept open, and how does the client get the pushed data (how does it use basically, maybe some code might help?) ?
Now, which one of them should I use for a realtime app (that I need to code). I have been hearing a lot about websockets (with socket.io [a node.js library]) but why not PHP ?
Thanks in Advance.