Type Alias: DeploymentStreamHandlers
ts
type DeploymentStreamHandlers = StreamLifecycleHandlers & object;What a caller wants to hear about while streaming a deployment.
Type Declaration
| Name | Type | Description |
|---|---|---|
onDeployment()? | (event) => void | - |
onEndpoint()? | (event) => void | One 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) => void | A new entry in the deployment's event log. |
onJob()? | (event) => void | - |
onJobs()? | (event) => void | The 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 | - |