Change parseSocketUrl to get the application from the socket URL instead of the referrer URL