UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

28 lines 1.12 kB
import { API_REGIONS } from '~/client/utils/endpoints'; /** * ```js * import { createClient } from '@amityco/ts-sdk-react-native' * const client = createClient(apiKey, 'https://asc.server/', 'myClient') * ``` * * Creates a new {@link Amity.Client} instance * * @param apiKey for the {@link Amity.Client} instance * @param apiRegion endpoint to connect to * @param apiEndpoint custom endpoint in case you don't want to use a preset endpoint * @param param.debugSession session's identifier for the client's logger instance * @returns A {@link Amity.Client} instance * * @category Client API * */ export declare const createClient: (apiKey: string, apiRegion?: (typeof API_REGIONS)[keyof typeof API_REGIONS], { debugSession, apiEndpoint, prefixDeviceIdKey, rteEnabled, }?: { debugSession?: string | undefined; apiEndpoint?: { http?: string | undefined; mqtt?: string | undefined; upload?: string | undefined; } | undefined; prefixDeviceIdKey?: string | undefined; rteEnabled?: boolean | undefined; }) => Amity.Client; //# sourceMappingURL=createClient.d.ts.map