2023-01-04 11:52:20 +07:00
|
|
|
export interface Options {
|
|
|
|
server?: string;
|
|
|
|
profile?: string;
|
|
|
|
key?: string;
|
|
|
|
apiKey?: string;
|
|
|
|
access?: string;
|
|
|
|
suffix?: string;
|
|
|
|
clientId?: string;
|
|
|
|
keep_connection?: boolean;
|
|
|
|
token?: string;
|
|
|
|
origin?: string;
|
|
|
|
port?: number;
|
|
|
|
host?: string;
|
|
|
|
|
|
|
|
// [key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ClientOptions {
|
|
|
|
port: number;
|
2023-07-11 18:57:49 +07:00
|
|
|
address?: string; // e.g. localhost:8081 (take if port is not set)
|
2023-01-04 11:52:20 +07:00
|
|
|
options?: Options;
|
|
|
|
}
|