MCPcopy Create free account
hub / github.com/cli/cli / KeepAlive

Method KeepAlive

internal/codespaces/rpc/invoker.go:272–274  ·  view source on GitHub ↗

KeepAlive sets a flag to continuously send activity signals to the codespace even if there is no other activity (e.g. stdio)

()

Source from the content-addressed store, hash-verified

270// KeepAlive sets a flag to continuously send activity signals to
271// the codespace even if there is no other activity (e.g. stdio)
272func (i *invoker) KeepAlive() {
273 i.keepAliveOverride = true
274}
275
276// Periodically check whether there is a reason to keep the connection alive, and if so, notify the codespace to do so
277func (i *invoker) heartbeat(ctx context.Context, interval time.Duration) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected