I have a TCP socket server that sends data to all clients that are connected.
The server sends new data every 2 seconds.
I need to display the data from this server in web page and update it as soon as it changes or every 2 seconds.
I sure can store this data in a database and call AJAX every 2 seconds to update it.
But is there a way to fetch and display data in real time?