openTunnel abstract method

Future<DashboardActionResult> openTunnel({
  1. required String nodeId,
  2. required int targetPort,
  3. int? publicPort,
  4. bool local = false,
  5. bool secure = false,
})

Opens a tunnel exposing nodeId's targetPort (or, when local, this machine's port) on a public Hub port. A local tunnel keeps serving in the background over the dashboard's live connection — no terminal takeover.

Implementation

Future<DashboardActionResult> openTunnel({
  required String nodeId,
  required int targetPort,
  int? publicPort,
  bool local = false,
  bool secure = false,
});