Skip to content
Developer Preview

ViewSubscribeParams

view/subscribe params: attach this connection’s live view subscription for a session at an explicit cursor — the fine-grained counterpart of the auto-subscribe, and the gap-free re-attachment path after view/unsubscribe. It never loads a session, takes no lease, writes nothing.

  • after
  • sessionId
Source

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

{
"description": "`view/subscribe` params: attach this connection's live view\nsubscription for a session at an explicit cursor — the fine-grained\ncounterpart of the auto-subscribe, and the gap-free re-attachment\npath after `view/unsubscribe`. It never loads a session, takes no lease,\nwrites nothing.",
"properties": {
"after": {
"description": "Resume cursor. When present, the server replays `(after, head]` as\nordinary view notifications before any live event — one gapless\ncursor sequence. Omitted means \"from now\": no historical replay.",
"type": "string"
},
"sessionId": {
"description": "The session to follow.",
"type": "string"
}
},
"required": [
"sessionId"
],
"type": "object"
}