33
34
export function createRemoteAgentHostState(options: {
36
>
readonly port: number;
37
>
readonly host?: string;
38
>
readonly connectionToken: string | undefined;
39
>
readonly quality?: string;
40
>
readonly tunnelName?: string;
41
>
}): IRemoteAgentHostState {
42
>
return {
43
>
schemaVersion: remoteAgentHostStateSchemaVersion,
44
>
pid: options.pid,
45
>
port: options.port,
46
>
host: options.host,
47
>
connectionToken: options.connectionToken ?? null,
48
>
protocolVersion: PROTOCOL_VERSION,
49
>
quality: options.quality,
50
>
tunnelName: options.tunnelName,
51
>
};
52
>
}
53
54
export function parseRemoteAgentHostState(raw: unknown): IRemoteAgentHostState | undefined {