mirror of
https://github.com/actix/examples
synced 2025-06-27 01:27:43 +02:00
Restructure folders (#411)
This commit is contained in:
committed by
GitHub
parent
9db98162b2
commit
c3407627d0
33
websockets/autobahn/README.md
Normal file
33
websockets/autobahn/README.md
Normal file
@ -0,0 +1,33 @@
|
||||
# websocket
|
||||
|
||||
Websocket server for autobahn suite testing.
|
||||
|
||||
## Usage
|
||||
|
||||
### server
|
||||
|
||||
```bash
|
||||
cd examples/websocket-autobahn
|
||||
cargo run --bin websocket-autobahn-server
|
||||
```
|
||||
|
||||
### Running Autobahn Test Suite
|
||||
|
||||
Running the autobahn test suite is easiest using the docker image
|
||||
as explained on the [autobahn-testsuite repo](https://github.com/crossbario/autobahn-testsuite#using-the-testsuite-docker-image).
|
||||
|
||||
First, start a server (see above). Then, run the test suite in fuzzingclient mode:
|
||||
|
||||
```bash
|
||||
docker run -it --rm \
|
||||
-v "${PWD}/config:/config" \
|
||||
-v "${PWD}/reports:/reports" \
|
||||
--network host \
|
||||
--name autobahn \
|
||||
crossbario/autobahn-testsuite \
|
||||
wstest \
|
||||
--spec /config/fuzzingclient.json \
|
||||
--mode fuzzingclient
|
||||
```
|
||||
|
||||
Results are written to the `reports/servers` directory for viewing.
|
Reference in New Issue
Block a user