Skip to content
Developer Preview

SessionClosedReason

The closed-reason vocabulary. Server-produced and published OPEN by owner ruling — the menu-B pick, which settles that this notification reason enum publishes open rather than resting on the ruling’s result-vocabulary rule by analogy. A crash is deliberately not a reason, because a crash emits no notification at all.

  • "hostShutdown"
  • "idle"
  • "leave"
Source

schema/msp/experimental/msp.schema.json#/types/SessionClosedReason

{
"description": "The closed-reason vocabulary. Server-produced and published\nOPEN by owner ruling — the menu-B pick, which settles\nthat this notification reason enum publishes open rather than resting on\nthe ruling's result-vocabulary rule by analogy. A crash is deliberately not a\nreason, because a crash emits no notification at all.",
"oneOf": [
{
"enum": [
"idle",
"hostShutdown",
"leave"
],
"type": "string",
"x-msp-openness": "open"
},
{
"const": "vacated",
"description": "A draining daemon unloaded this session on the upgrade path and\nreleased its lease. The successor on\nthe canonical socket reloads it at the next resume. Socket-only,\nexperimental tier. A connection that\ndid not opt in receives the `hostShutdown` fallback for this\nvalue; opted-in connections decode `vacated`.",
"type": "string",
"x-msp-descriptor": "SessionClosedReason.vacated",
"x-msp-stability": "experimental"
}
],
"x-msp-openness": "open"
}