UNPKG

@squidcloud/client

Version:

A typescript implementation of the Squid client

12 lines (11 loc) 802 B
import { AppId } from '../public-types/communication.public-types'; import { Stage } from '../types/stage'; export declare const KOTLIN_CONTROLLERS: string[]; /** * Returns true if the given path is served by Kotlin core in local dev (port 8001). * Encodes the WebSocket split: `/ws/squidlet` stays on Kotlin while other `/ws/*` paths * (general, localdev) are owned by the TypeScript core after the migration. */ export declare function isKotlinPath(path: string): boolean; export declare function getEnvironmentPrefix(shard: string | undefined, region: string, cloudId: string, stage: Stage): string; export declare function getApplicationUrl(environmentPrefix: string, appId: string, path: string, appIdPlaceholder?: AppId, environmentPrefixPlaceholder?: string, forceKotlin?: boolean): string;