A basic app that renders a component and responds to a click event.
Install Trunk (WASM web app bundler): cargo install trunk
Install wasm-bindgen: cargo install wasm-bindgen-cli
trunk serve --open
The command will:
Compile your Rust code to WebAssembly
Bundle it with your HTML/CSS
Start a development server
Open your browser to http://localhost:8080
Open multiple browser tabs/windows to test the chat functionality
Messages should appear in real-time across all connected clients