This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
Auto-reload for preview window #24
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Problem
Currently, there is no auto-reload when the user generates the site, the user has to reload manually.
Solution
Auto-reload can be implemented using websocket which tiny-http supports (tiny-http/tiny-http#8).
This can be implemented with the following:
index.html
. This script will reload the page when it receives areload
message via websoket.content.json
file for changes, sending areload
message on change.Additional context
https://github.com/tiny-http/tiny-http/blob/master/examples/websockets.rs
The text was updated successfully, but these errors were encountered: