update /box/report.csv.
- The application receives a change from the service, or asks it for one.
- It reports the change with
ws.notify(), which also drops Mirage’s cached copy of that path. - The agent receives it from
ws.events().
ws.events() alone watches nothing: the application connects the service, by
push or poll.
Listen for changes
Push
The service sends each change: a webhook, a stream or a file watcher. A hook turns its payload into changes forws.notify():
Poll
The VFS asks the service what changed since a checkpoint. The firstpull,
with no checkpoint, returns none and records where to start:
Any other VFS: the application detects the change itself and calls
ws.notify().