Function connect

pub fn connect(endpoint: &str) -> Result<u64, ConnectHandleError>