Type Alias LiveEvents
type LiveEvents = {
delta: LiveDelta;
hello: { cursor: number; protocol: typeof PROTOCOL_VERSION };
lease: { leaseMs: number };
revoked: Record<string, never>;
}
delta: LiveDelta;
hello: { cursor: number; protocol: typeof PROTOCOL_VERSION };
lease: { leaseMs: number };
revoked: Record<string, never>;
}
Properties
delta
the tags changed after from up to cursor, as a /.spool/sync answer; public information only
hello
first on every stream: the protocol and the cursor the stream's own deltas follow
lease
lease: { leaseMs: number }
The session is good for leaseMs from the moment the page reads the event, and again after the
next one. It is a duration so a device clock that is wrong does not change it.
revoked
revoked: Record<string, never>
the session behind the stream ended; the stream closes after this event
what each live event carries