http request and socket.io working