GET
/
browsers
/
{id}
/
fs
/
watch
/
{watch_id}
/
events
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

const response = await client.browsers.fs.watch.events('watch_id', { id: 'id' });

console.log(response.path);
{
  "type": "CREATE",
  "name": "<string>",
  "path": "<string>",
  "is_dir": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

watch_id
string
required

Response

200
text/event-stream

SSE stream of filesystem events

Filesystem change event.