Open Play SDK API başvurusu
    Preparing search index...

    Interface ClientOptions

    Oyuncu session/access JWT ile developer API key karışmasın.

    interface ClientOptions {
        apiKey: string;
        baseUrl: string;
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        maxResponseBytes?: number;
        maxRetries?: number;
        timeoutMs?: number;
    }
    Index

    Properties

    apiKey: string

    Browser/oyunda yalnız client key; güvenli sunucuda server key.

    baseUrl: string

    HTTPS kök veya geliştirmede literal loopback HTTP.

    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Güvenilir Fetch; credential'ı görebilir, loglamamalıdır.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    maxResponseBytes?: number

    Yanıt sınırı; 2 MiB varsayılan, en çok 16 MiB.

    maxRetries?: number

    İlk istekten sonra 0..5 deneme; varsayılan 2.

    timeoutMs?: number

    Bütün denemeler/bekleme/gövde dahil 1..120000 ms.