It can be useful in some circumstances to get a reference to the HTTP server in order to be able to programmatically request a client refresh.
Maybe something like:
eleventyConfig.setServerOptions({
....
ready: (ds) => {
initCustomWatcher(eleventyConfig, ds);
}
....
}
and then somewhere else: ds.sendUpdateNotification(...).