Example of communicating with a server using Websockets - simple chat.
- Using web-sys's Websocket in client.
- Serde for [de]serializiation.
- WS-RS (ws) as a websocket server.
- Demonstrates sending messages and receiving messages with sender id (see console or server logs).
- There is not workspace - client and server dependencies are resolved by
features, seeCargo.tomlandMakefile.toml.
cargo make startOpen a new terminal window.
cargo make start_serverOpen 127.0.0.1:8000 in your browser.