Stephen Seo
e77d25996d
When the front-end connects to the back-end, it creates a callback that sends a disconnect message with the received ID on "pagehide" and "beforeunload" events. The previous implementation did not "undo" these callbacks when the game was reset and a new ID was received. This fix prevents the front-end from resending disconnect messages with previously received IDs on browser window/tab close. |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
COPYING | ||
index.html | ||
README.md |
How to Test
- Have Rust installed via rustup.
- Have the wasm target installed.
rustup target add wasm32-unknown-unknown
- Have
trunk
installed and in PATH.cargo install trunk
- Serve the front-end via trunk.
trunk serve
- This should serve a local server at
127.0.0.1:8080
- This should serve a local server at
Other Notes
The webserver hosting this front_end
is here.
Note that this website may not host the latest version of this front_end
.
See choose-a-license for details about the software license used.