Skip to content
Developer Preview

view/subscribe

Attaches this connection’s live view subscription for a session at an explicit cursor, replaying (after, head] before any live event; the re-attach path after view/unsubscribe.

Type: 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.

Field Type Stability Presence Description
after string optional Resume cursor. When present, the server replays (after, head] as ordinary view notifications before any live event — one gapless cursor sequence. Omitted means “from now”: no historical replay.
sessionId string required The session to follow.
Source

schema/msp/experimental/msp.schema.json#/methods/view~2Fsubscribe

{
"description": "Attaches this connection's live view subscription for a session at an explicit cursor, replaying `(after, head]` before any live event; the re-attach path after `view/unsubscribe`.",
"params": {
"$ref": "#/$defs/ViewSubscribeParams"
},
"result": {
"$ref": "#/$defs/ViewSubscribeResult"
}
}