Added support for socket.IO OS X compatibility