Socket.IO uses WebSockets when it can.
socket.io will use feature detection to decide if the connection will be established with WebSocket, AJAX long polling, Flash, etc., so our app can work everywhere.