connect loading spinner to socket done