property Client.call

Sends any Command and reads its reply. Needs a login.

With channel, the request addresses that channel; without it, the device itself. body holds the parameters to send, by element name; leave it out for commands that only read.

Type

<C extends Command>(
command: C,
options?: CallOptions<C>
) => Promise<CallReply<C>>

Usage

import { type Client } from "client.ts";