Skip to main content

session_close

Function session_close 

Source
pub fn session_close(
    endpoint: &IrohEndpoint,
    session_handle: u64,
    close_code: u64,
    reason: &str,
) -> Result<(), CoreError>
Expand description

Close a session and remove it from the registry.

close_code is an application-level error code (maps to QUIC VarInt). reason is a human-readable string sent to the peer.