Skip to content

Latest commit

 

History

History

websocket

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Websocket example

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, see Cargo.toml and Makefile.toml.

cargo make start

Open a new terminal window.

cargo make start_server

Open 127.0.0.1:8000 in your browser.