Serves a RemoteSession client for the whole job.

The host outlives any one AgentSession: at most one session is attached at a time, and none once it has closed. Session requests go to the attached session and fail with NO_ACTIVE_SESSION_ERROR while none is; finalize_simulation needs only the job, so it is answered either way.

Constructors

Accessors

Methods

  • Drain accepted responses for three seconds, then allow three seconds for cancellation. Hooks that ignore cancellation may outlive transport closure; their cleanup stays observed.

    Returns Promise<void>