fn engine_url_to_ws_url(engine_url: &str) -> Result<Url>Expand description
Converts an engine API URL to the default RPC websocket URL.
Transformations:
http→wshttps→wssws/wsskeep their scheme- Port is always set to
8546, reth’s default RPC websocket port.
This is used when we only know the engine API URL (typically :8551) but
need to connect to the node’s WS RPC endpoint for persistence events.