Store wsUrl in preferences after being redirected.