Move socket io to the index route.