@casual-simulation/aux-common
Version:
Common library for AUX projects
29 lines • 859 B
TypeScript
/**
* 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