mirror of
https://github.com/actix/examples
synced 2024-12-12 14:13:11 +01:00
.. | ||
src | ||
static | ||
Cargo.toml | ||
README.md |
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