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.fs.watch.events('watch_id', { id: 'id' });
console.log(response.path);{
"type": "CREATE",
"path": "<string>",
"name": "<string>",
"is_dir": 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.fs.watch.events('watch_id', { id: 'id' });
console.log(response.path);{
"type": "CREATE",
"path": "<string>",
"name": "<string>",
"is_dir": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
SSE stream of filesystem events