Cargo web start // reload on every recompile


#1

I’m using cargo web start --target=wasm32-unknown-unknown

Every time a source file is modified, the “cargo web start” process automatically recompiles the code.

Question:

Is there a way to things up so that after the “cargo web start” does the recompile, the browser is somehow notified to make a reload? The browser might be on a separate machine.

thanks!


#2

There is https://browsersync.io project that specializes in reloading browsers remotely. It has built-in support for JS/Node, but there’s also browser-sync reload command that you should be able to launch from Rust.