Skip to content

CommentEventBase

type CommentEventBase = {
actor: string;
at: number;
clock: number;
id: string;
};

Defined in: comments/types.ts:53

Fields shared by every event. clock+actor give a total order for LWW.

PropertyTypeDescriptionDefined in
actorstringStable id of the peer that authored the event (LWW tie-break).comments/types.ts:59
atnumberWall-clock time the event was created (ms) — for display only.comments/types.ts:61
clocknumberLamport clock — monotonic per actor, advanced on receive.comments/types.ts:57
idstringGlobally-unique event id (dedupe key).comments/types.ts:55