Adding suport for socket.io api