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:
@ -5,11 +5,11 @@ authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||
workspace = "../"
|
||||
|
||||
[[bin]]
|
||||
name = "server"
|
||||
name = "websocket-tcp-server"
|
||||
path = "src/main.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "client"
|
||||
name = "websocket-tcp-client"
|
||||
path = "src/client.rs"
|
||||
|
||||
[dependencies]
|
||||
|
@ -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-tcp-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-tcp-client`
|
||||
|
||||
## WebSocket Browser Client
|
||||
|
||||
|
Reference in New Issue
Block a user