normalizeWebSocketUrl

url as a WebSocket phone link connects to it, or null when it is not a ws:// or wss:// URL with a host, a port in 1..65535 and no user@ part. The scheme and host, apart from an IPv6 zone identifier, are lowercased and the scheme's default port (80 for ws, 443 for wss) is dropped, so equal endpoints compare equal. An empty or / path becomes WEBSOCKET_API_PATH, so ws://192.168.1.20 reaches firmware's endpoint; a query follows the path unchanged.