Skip to content

Type Alias: DeploymentStreamHandlers

ts
type DeploymentStreamHandlers = StreamLifecycleHandlers & object;

What a caller wants to hear about while streaming a deployment.

Type Declaration

NameTypeDescription
onDeployment()?(event) => void-
onEndpoint()?(event) => voidOne of the deployment's endpoints and whether it currently answers. Sent for every endpoint on open, then whenever reachability changes — several ports of one op share a tunnel and so are restated together.
onEvent()?(event) => voidA new entry in the deployment's event log.
onJob()?(event) => void-
onJobs()?(event) => voidThe authoritative set of the deployment's active jobs, by id, sent once when the stream opens (ahead of the per-job frames). Prune any active job still shown whose id is absent here: a completion missed while disconnected is not replayed as a job frame, so this is the only signal that it is gone.
onTask()?(event) => void-