import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.browsers.process.kill('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
id: 'id',
signal: 'TERM',
});
console.log(response.ok);{
"ok": true
}import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.browsers.process.kill('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
id: 'id',
signal: 'TERM',
});
console.log(response.ok);{
"ok": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Signal to send to the process.
Signal to send.
TERM, KILL, INT, HUP OK
Generic OK response.
Indicates success.