guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
143 stars 7 forks source link

feat: websocket watcher events #90

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

This implements the server-side aspect of https://github.com/guybedford/chomp/issues/61 in supporting a websocket protocol for watcher change events for the file server.

In addition file hashes are used to avoid unnecessary events as well as implement local hash-based caching.

All served URLs are added to the watcher list.

The client component will be implemented through the extension layer, so this fully closes https://github.com/guybedford/chomp/issues/61.