method Dialect.encodeCommands
Dialect.encodeCommands(actions: readonly Action[]): readonly CommandBatch[]

Splits actions into round trips and serializes each. Owns the operation vocabulary, stack defaults, and batching.

Parameters

actions: readonly Action[]

Actions requested by the caller

Return Type

readonly CommandBatch[]

One batch per HTTP round trip needed

Usage

import { type Dialect } from "mod.ts";