Attach pipes the connection and pty, spawning it if necessary, replays history, then blocks until EOF, an error, or the context's end. The connection is expected to send JSON-encoded messages and accept raw output from the ptty. If the context ends or the process dies the connection will be detach
(ctx context.Context, connID string, conn net.Conn, height, width uint16, logger slog.Logger)
| 109 | // from the ptty. If the context ends or the process dies the connection will |
| 110 | // be detached. |
| 111 | Attach(ctx context.Context, connID string, conn net.Conn, height, width uint16, logger slog.Logger) error |
| 112 | // Wait waits for the reconnecting pty to close. The underlying process might |
| 113 | // still be exiting. |
| 114 | Wait() |
no outgoing calls