27 lines
932 B
TypeScript
27 lines
932 B
TypeScript
/**
|
|
* LOCO Checkin — connects to the checkin server (e.g. ticket-loco.kakao.com:5242)
|
|
* over TLS with plaintext LOCO (same as booking), sends CHECKIN, and returns
|
|
* the LOCO session server host:port for the encrypted connection.
|
|
*/
|
|
export interface CheckinRequest {
|
|
userId: number;
|
|
os: string;
|
|
ntype: number;
|
|
appVer: string;
|
|
lang: string;
|
|
MCCMNC: string;
|
|
}
|
|
export interface CheckinResponse {
|
|
/** LOCO session server host */
|
|
host: string;
|
|
/** LOCO session server port */
|
|
port: number;
|
|
/** Full raw response for debugging */
|
|
raw: Record<string, unknown>;
|
|
}
|
|
/**
|
|
* Connect to the checkin server via TLS + plaintext LOCO,
|
|
* send CHECKIN, and return the LOCO session server address.
|
|
*/
|
|
export declare function fetchCheckinServer(checkinHost: string, checkinPort: number, serverPublicKey: string, req: CheckinRequest): Promise<CheckinResponse>;
|
|
//# sourceMappingURL=checkin.d.ts.map
|