pub fn port_of(url: &str) -> Option<u16>Expand description
The port named by a node URL, if it names one.
http://127.0.0.1:8417 is the shape choir init writes, and the
port in it is the one the daemon should bind — reading it back means
serve and every client command agree without the port being
written down twice.