### Install WasmServe Source: https://github.com/hajimehoshi/wasmserve/blob/main/README.md Installs the WasmServe tool using go install. ```sh go install github.com/hajimehoshi/wasmserve@latest ``` -------------------------------- ### Run Local Package with WasmServe Source: https://github.com/hajimehoshi/wasmserve/blob/main/README.md Clones the ebiten repository, navigates to the sprites example directory, and runs it using WasmServe. Open http://localhost:8080/ in your browser afterwards. ```sh git clone https://github.com/hajimehoshi/ebiten # This might take several minutes. cd ebiten wasmserve ./examples/sprites ``` -------------------------------- ### Change Working Directory with WasmServe Source: https://github.com/hajimehoshi/wasmserve/blob/main/README.md Demonstrates how to change the working directory to serve using parentheses with the cd command before executing wasmserve. ```sh (cd /path/to/working/dir; wasmserve github.com/yourname/yourpackage) ``` -------------------------------- ### Run Remote Package with WasmServe Source: https://github.com/hajimehoshi/wasmserve/blob/main/README.md Runs a remote Go package using WasmServe. After execution, open http://localhost:8080/ in your browser. ```sh wasmserve github.com/hajimehoshi/wasmserve/example ``` -------------------------------- ### Trigger Browser Reload Source: https://github.com/hajimehoshi/wasmserve/blob/main/README.md Triggers a browser reload by making a call to the server at /_notify. This can be added to build scripts or IDE commands for automatic browser updates. ```sh curl localhost:8080/_notify ``` -------------------------------- ### Trigger Browser Reload from Script Source: https://github.com/hajimehoshi/wasmserve/blob/main/README.md Triggers a browser reload from a script by making a call to /_notify on the WasmServe instance. This will refresh the page in the browser. ```sh curl http://localhost:8080/_notify ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.