KeepAlive sets a flag to continuously send activity signals to the codespace even if there is no other activity (e.g. stdio)
()
| 270 | // KeepAlive sets a flag to continuously send activity signals to |
| 271 | // the codespace even if there is no other activity (e.g. stdio) |
| 272 | func (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 |
| 277 | func (i *invoker) heartbeat(ctx context.Context, interval time.Duration) { |
nothing calls this directly
no outgoing calls
no test coverage detected