Cotal TypeScript packages
    Preparing search index...

    Interface ControlClient

    What the surface making control calls supplies, because only it knows.

    interface ControlClient {
        roster(
            flags: { server?: string; space?: string },
        ): Promise<readonly Presence[]>;
        versionSkew(
            detail: string,
            undeclared: string,
            managerVersion: string | undefined,
        ): string;
    }
    Index
    • The roster of the space flags resolve to, read when a user-auth exchange refuses to pick one of the caller's several live managers, so each can be named.

      Parameters

      • flags: { server?: string; space?: string }

      Returns Promise<readonly Presence[]>

    • The sentence for a manager refusing undeclared, an argument its contract does not declare. detail is the refusal's code and message, and managerVersion the version the refusing manager reported in its own status, when it did. The surface knows its own release and how it is updated, so it says which side is older. Called only for that refusal.

      Parameters

      • detail: string
      • undeclared: string
      • managerVersion: string | undefined

      Returns string