connectToMachine

fun connectToMachine(machine: MachineInfo, localPort: Int = 13297): LauncherClient

Connect to a registered machine. Automatically generates a connection token via the local launcher, then uses it to authenticate with the remote machine.

Parameters

machine

The machine to connect to (from machines.list())

localPort

The local launcher's port for token generation (default 13297)