resumeSession method

Future<RemoteSession> resumeSession({
  1. required String nodeId,
  2. required String sessionId,
  3. PtySpec? pty,
})

Resumes a previously detached interactive session on nodeId, identified by sessionId (a full id, short handle, or unambiguous prefix). The returned session continues exactly where it was detached; the node enforces that the caller owns it.

Implementation

Future<RemoteSession> resumeSession({
  required String nodeId,
  required String sessionId,
  PtySpec? pty,
}) => openSession(
  nodeId: nodeId,
  mode: SessionMode.shell,
  pty: pty,
  resumeSessionId: sessionId,
);