1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
examples/websockets/echo-actorless
2023-08-30 15:40:53 +01:00
..
src fix description of send_to_broadcast_ws handler 2023-08-30 15:40:53 +01:00
static add actorless websocket echo example 2022-07-11 01:44:46 +01:00
Cargo.toml remove unneeded dependencies 2023-07-18 17:42:33 +01:00
README.md remove select macro from echo example 2022-07-11 20:19:20 +01:00

Echo WebSocket (actor-less)

Simple echo websocket server using actix-ws.

Usage

Server

cd websockets/echo-actorless
cargo run
# starting HTTP server at http://localhost:8080

Browser Client

Go to http://localhost:8080 in a browser.

CLI Client

# using `websocat` (https://github.com/vi/websocat)
websocat -v --ping-interval=2 ws://127.0.0.1:8080/ws