Field Notes
    Preparing search index...

    Interface ServerSyncPlugin

    interface ServerSyncPlugin {
        name: string;
        ownedLegacyKinds?: readonly string[];
        applyFanout?(op: SyncOp, context: ServerOpContext): Promise<SyncOp | null>;
        evictRoom?(room: string): void;
        filterSnapshot?(
            snapshot: PluginSnapshot,
            viewer: { role?: string; userId?: string },
        ): PluginSnapshot | null;
        process?(
            op: SyncOp,
            context: ServerOpContext,
            next: ServerNext,
        ): Promise<ApplyResult>;
        registerExtensionKinds?(registry: ServerExtensionRegistry): void;
        snapshot?(
            room: string,
            backend: HubBackend,
        ): Promise<PluginSnapshot | undefined>;
    }
    Index
    name: string
    ownedLegacyKinds?: readonly string[]
    • Called after roomIdleTimeoutMs with no local connection; drops this plugin's per-room memory.

      Parameters

      • room: string

      Returns void