I\'m thinking about how limiting it is for AJAX apps to have to poll for updates, when what would be ideal is for javascript to be able to set up a real two way connection t
You can use node.js framework's socket.io package which can can be installed via npm (A node package manager).
More detailed usage.