Keep computer alive
client.computers.keepalive(stringid, RequestOptionsoptions?): ComputerKeepaliveResponse
POST/computers/{id}/keepalive
Extend the timeout for a computer session and verify it is still running
Parameters
id: string
Returns
ComputerKeepaliveResponse = Record<string, unknown>
Keep computer alive
import Lightcone from '@tzafon/lightcone';
const client = new Lightcone({
apiKey: process.env['TZAFON_API_KEY'], // This is the default and can be omitted
});
const response = await client.computers.keepalive('id');
console.log(response);{
"foo": "bar"
}Returns Examples
{
"foo": "bar"
}