Ties socket.io to http.