pdfrx_web
    Preparing search index...

    Type Alias ServerRelayMessage

    ServerRelayMessage:
        | {
            sessionId: string;
            snapshot: PageSessionSnapshot;
            type: "session.snapshot";
        }
        | {
            sessionId: string;
            snapshot: AnnotationSessionSnapshot;
            type: "annotation.snapshot";
        }
        | {
            sessionId: string;
            snapshot: FormSessionSnapshot;
            type: "form.snapshot";
        }
        | { connectedCount: number; sessionId: string; type: "session.presence" }
        | {
            committed: CommittedPageOperation;
            sessionId: string;
            type: "page.committed";
        }
        | {
            committed: CommittedAnnotationOperation;
            sessionId: string;
            type: "annotation.committed";
        }
        | {
            preview: AnnotationPreview;
            sessionId: string;
            type: "annotation.preview";
        }
        | {
            committed: CommittedFormOperation;
            sessionId: string;
            type: "form.committed";
        }
        | { requestId: string; sessionId: string; type: "session.join.pending" }
        | {
            actorId: string;
            displayName: string;
            requestId: string;
            sessionId: string;
            type: "session.join.request";
        }
        | {
            memberToken: string;
            requestId: string;
            sessionId: string;
            type: "session.join.approved";
        }
        | {
            requestId: string;
            retryAfterMs: number;
            sessionId: string;
            type: "session.join.rejected";
        }
        | {
            decision: "approved"
            | "rejected"
            | "cancelled";
            requestId: string;
            sessionId: string;
            type: "session.join.resolved";
        }
        | {
            code: string;
            currentRevision?: number;
            message: string;
            operationId?: string;
            sessionId?: string;
            type: "operation.rejected";
        }

    Snapshots, commits, and structured errors emitted by the reference relay.