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.
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.