Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(serve)!: implement live reloading with websockets
- Added `tokio-tungstenite` and `futures-util` dependencies for websocket handling - Implemented a websocket server that listens for connections and sends reload commands - Injected a `livereload.js` script into HTML pages that establishes the websocket connection - Changed the reload mechanism to trigger a websocket message instead of polling - Updated the server to serve the `livereload.js` file This replaces the hacky polling live reload mechanism with websockets for more efficient and responsive updates. Closes #35
- Loading branch information