Added support for socket.io