Await a root or nested handler-concurrency slot.
Optionalsignal: AbortSignalSnapshot actions currently tracked as in-flight.
Attach and drive one transport endpoint.
The returned status covers the stream startup handshake. The session keeps pumping it afterwards; await done for connection-wide completion.
Await all actions observed during the wait and aggregate their failures.
OptionaltimeoutMs: numberRequest cancellation of every action without waiting for teardown.
Resolve, acknowledge, and start one inbound registered action call.
Apply a received fragment, including reserved action-status nodes.
Dispatch every action and fragment in one validated inbound message.
Await full cleanup and receive the session's terminal status.
Current action registry, or null for a routing-only session.
Absolute deadline as Unix milliseconds, or null.
Copy the connection-scoped binary headers.
Stable connection id.
Shared namespace for action port nodes.
Copy the validated session limits and deadline.
Current terminal status; OK is provisional while the session is open.
Whether either endpoint has ended the session for new work.
Whether every attached stream has completed and state is fully quiescent.
Await one inbound message without exposing its stream id.
OptionaltimeoutMs: numberAwait one inbound message and its stream id, or null at clean EOF.
OptionaltimeoutMs: numberRelease a root or nested handler-concurrency slot.
Queue a message on a named stream or round-robin across active streams.
Replace the registry and rebind active actions for later name resolution. Prefer configuring it before dispatch so one operation does not observe registrations from different registry versions.
Snapshot the streams currently attached to this session.
StaticcreateCreate an open session and start deadline/no-stream supervision.
Pull-oriented Session with a one-slot inbound backpressure handoff.
Use this when an agent owns an explicit
while (await receive())loop. It replaces stream callbacks with receiveWithStreamId; action and node auto-dispatch are therefore the caller's choice. A clean session half-close producesnullonce, while an abort remains a structured error.