wavly / shawty

Tool for shortening long URLs
MIT License
5 stars 0 forks source link

Better live reloading server #47

Closed Hamza12700 closed 3 weeks ago

Hamza12700 commented 3 weeks ago

Improved live-reloading server

The previous version of the live-reloading server was slow because it was in main server and whenever the server restarted it has to wait for the server come back up and the client would keep making request to the server for websocket connection and upon successful connection the client would then reload the web page.

This iteration of the live-reloading server is written in Rust separate from the main web server. It watches the all the files in the project recursively and upon any change in the source code will send message to the client and the client then would reload the web page. This significantly improves the time to reload the web page.

record