ping(): Promise<ResponseChunk | null>
Sends a ping and resolves the daemon's pong response (or null on failure).
import * as Client from './client.ts'; // Defined, not invoked: one ping/pong round-trip over the daemon socket. async function daemonIdentity() { return await Client.ping(); // { type: 'pong', pid, nodeVersion, cwd, startedAt } or null }
Promise<ResponseChunk | null>