events.iterate.com

Event type

events.iterate.com/stream/connection-closed

Observes that a live connection from this stream to a processEventBatch callback closed. Abrupt Durable Object teardown can end an in-memory connection without leaving this best-effort close fact; runtime connection state is authoritative for what is open now. Ephemeral, like connection-opened.

Payload schema

connectionKeystring
reason"replaced" | "closed-by-owner" | "rpc-broken" | "delivery-failed" | "subscription-removed" | "idle" | "departed"
errorstringoptional
Raw JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "connectionKey": {
      "type": "string",
      "minLength": 1
    },
    "reason": {
      "type": "string",
      "enum": [
        "replaced",
        "closed-by-owner",
        "rpc-broken",
        "delivery-failed",
        "subscription-removed",
        "idle",
        "departed"
      ]
    },
    "error": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "connectionKey",
    "reason"
  ]
}