updating the url for the socket connection
 adding in a loading period