*
* Waits for the handshake automatically, then runs actions serially. Names
* without a dot are prefixed with `Epic.Clinical.Informatics.Web.`.
*
* @param action - Action name, bare or fully-qualified.
* @param args - Optional arguments to post with the action.
* @param haltOnError - If `true`, a failure clears the remaining queue.
* @returns `true` on success; `false` if inactive or when an `error` handler absorbs the failure. Rejects only when no `error` handler is set.
*/
public async do(
action: string,
args: Record<string, unknown> | null = null,
haltOnError: boolean = false
): Promise<boolean> {