UNPKG

@casual-simulation/aux-common

Version:
29 lines 859 B
/** * Defines an interface that represents a connection indicator. * That is, the information that a client needs to establish a connection. */ export type ConnectionIndicator = ConnectionIndicatorToken | ConnectionIndicatorId; /** * Defines an interface that represents a connection token. */ export interface ConnectionIndicatorToken { /** * The connection token that should be used. */ connectionToken: string; } /** * Defines an interface that represents a connection ID. */ export interface ConnectionIndicatorId { /** * The connection ID that should be used. */ connectionId: string; } /** * Gets the connection ID for the given indicator. * @param indicator The indicator. */ export declare function getConnectionId(indicator: ConnectionIndicator): string; //# sourceMappingURL=ConnectionIndicator.d.ts.map