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.toml
andMakefile.toml
.
cargo make start
Open a new terminal window.
cargo make start_server
Open 127.0.0.1:8000 in your browser.