mirror of
https://github.com/actix/examples
synced 2024-11-23 14:31:07 +01:00
Add instructions to cd to the websockets/chat-tcp directory before running that example.
This commit is contained in:
parent
965f64f013
commit
33cad83592
@ -18,7 +18,14 @@ Chat server listens for incoming tcp connections. Server can access several type
|
|||||||
- `some message` - just string, send message to all peers in same room
|
- `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
|
- 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 websocket-tcp-server`
|
To start server run
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd websockets/chat-tcp
|
||||||
|
cargo run --bin websocket-tcp-server`
|
||||||
|
```
|
||||||
|
|
||||||
|
If the current directory is not correct, the server will look for `index.html` in the wrong place.
|
||||||
|
|
||||||
## Client
|
## Client
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user