1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +02:00

Fix "websocket" example's readme, and make binary names unique (#45)

Give each example binary a unique name.

This should allow running cargo run --bin in the root directory.
This commit is contained in:
sapir
2018-09-24 11:57:36 +03:00
committed by Douman
parent 8edf86e4b8
commit d9afae21b6
10 changed files with 21 additions and 14 deletions

View File

@ -5,7 +5,7 @@ authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
workspace = "../"
[[bin]]
name = "server"
name = "websocket-chat-server"
path = "src/main.rs"
[dependencies]

View File

@ -19,13 +19,13 @@ Chat server listens for incoming tcp connections. Server can access several type
* `some message` - just string, send message to all peers in same room
* client has to send heartbeat `Ping` messages, if server does not receive a heartbeat message for 10 seconds connection gets dropped
To start server use command: `cargo run --bin server`
To start server use command: `cargo run --bin websocket-chat-server`
## Client
Client connects to server. Reads input from stdin and sends to server.
To run client use command: `cargo run --bin client`
To run client use command: `cargo run --bin websocket-chat-client`
## WebSocket Browser Client