update readme
This commit is contained in:
parent
b4b60e31fe
commit
04b350d598
1 changed files with 14 additions and 6 deletions
20
readme.md
20
readme.md
|
@ -17,15 +17,13 @@ With auto-reload:
|
|||
Then:
|
||||
|
||||
```sh
|
||||
watch -i client -cx run
|
||||
./test
|
||||
```
|
||||
|
||||
or if you're lazy like me just run `./test`
|
||||
|
||||
Without auto-reload:
|
||||
|
||||
```sh
|
||||
cargo run
|
||||
cargo run -p server
|
||||
```
|
||||
|
||||
### Client
|
||||
|
@ -54,20 +52,30 @@ cargo build --release
|
|||
|
||||
---
|
||||
|
||||
- The server automatically serves the built client from `/dist` at `127.0.0.1:3030`. When building for release the client automatically points to doordesk
|
||||
- The server automatically serves the built client from `/dist` at `127.0.0.1:3030`. When building for release the client automatically points to doordesk.
|
||||
|
||||
- Configure any custom clients to connect to `ws://127.0.0.1:3030/websocket` for local testing or `wss://cards.doordesk.net/websocket` to use my server
|
||||
- Configure any custom clients to connect to `ws://127.0.0.1:3030/websocket` for local testing or `wss://cards.doordesk.net/websocket` to use my server.
|
||||
|
||||
## Tools:
|
||||
|
||||
There is a tool named socket_blaster used for stress testing the server.
|
||||
|
||||
Run
|
||||
|
||||
```sh
|
||||
cargo run -p socket_blaster -- -h
|
||||
```
|
||||
|
||||
to see available options.
|
||||
|
||||
Then
|
||||
|
||||
```sh
|
||||
cargo run -p socket_blaster -- [COMMAND]
|
||||
```
|
||||
|
||||
to run a command.
|
||||
|
||||
## TODO:
|
||||
|
||||
- prevent zombie users after browser crash
|
||||
|
|
Loading…
Add table
Reference in a new issue