CommentMessage
type CommentMessage = | { actor: string; type: "hello";} | { events: CommentEvent[]; type: "snapshot";} | { events: CommentEvent[]; type: "events";};Defined in: comments/types.ts:84
Messages exchanged by CommentSync over a Transport<CommentMessage>.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ actor: string; type: "hello";}“I just joined” — prompts peers to reply with a snapshot.
Type Literal
Section titled “Type Literal”{ events: CommentEvent[]; type: "snapshot";}Full event log, sent in response to hello (late-join catch-up).
Type Literal
Section titled “Type Literal”{ events: CommentEvent[]; type: "events";}Incremental fan-out of newly authored events.