Protocol

ping

A round trip that proves the daemon is alive and has drained everything sent before it.

CALLcrownpaper.ping
Rust
let pending = client.ping()?;
client.wait(pending, Some(Duration::from_secs(5)))?;
CLI output
pong

Requests on a connection are handled in order, so a ping reply also confirms that every notification sent before it was processed.

Parameters

This method takes no parameters.

Reply

()unit

Empty reply. A connection error means the daemon is not running.