pub async fn session_connect(
endpoint: &IrohEndpoint,
remote_node_id: &str,
direct_addrs: Option<&[SocketAddr]>,
) -> Result<u64, CoreError>Expand description
Establish a session (QUIC connection) to a remote peer.
Each call creates a dedicated QUIC connection — sessions are not pooled.
This ensures that closing one session handle cannot affect other sessions
to the same peer. (Fetch operations continue to use the shared pool for
efficiency; sessions opt out because session_close closes the underlying
connection.)
Returns an opaque session handle.