Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias LiveEvents

    what each live event carries

    type LiveEvents = {
        delta: LiveDelta;
        hello: { cursor: number; protocol: typeof PROTOCOL_VERSION };
        lease: { leaseMs: number };
        revoked: Record<string, never>;
    }
    Index
    delta: LiveDelta

    the tags changed after from up to cursor, as a /.spool/sync answer; public information only

    hello: { cursor: number; protocol: typeof PROTOCOL_VERSION }

    first on every stream: the protocol and the cursor the stream's own deltas follow

    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: Record<string, never>

    the session behind the stream ended; the stream closes after this event