This is a simple example to show how client get continuous data from server based ajax stream.
You could check out the result online directly.
There are many ways to continuous synchronization between browser and server. In my opinion, we have four ways to achieve this.
- Ajax streaming
- Ajax long-polling
- IFrame streaming
- WebSocket