Socket.IOSocket.IO aims to make realtime apps possible in every browser and mobile device, blurring the differences between the different transport mechanisms. The client side API looks like this:
var socket = new io.Socket(); socket.on('connect', function(){ socket.send('hi!'); }) socket.on('message', function(data){ alert(data); }) socket.on('disconnect', function(){})Under the hoods, Socket.IO will use feature detection to decide if the connection will be established with WebSocket, AJAX long polling, etc (see supported transports), making creating realtime apps that work everywhere a snap.
via socket.io
Real-time streaming over HTTP made easier.