setting socket to connect to the app url rather than localhost