1
0
mirror of https://github.com/actix/examples synced 2024-11-24 06:43:00 +01:00
examples/websockets/autobahn/README.md
2022-02-18 03:36:04 +00:00

33 lines
870 B
Markdown

# WebSocket Autobahn Test Server
WebSocket server for the [Autobahn WebSocket protocol testsuite](https://github.com/crossbario/autobahn-testsuite).
## Usage
### Server
```sh
cd websockets/autobahn
cargo run
```
### Running Autobahn Test Suite
Running the autobahn test suite is easiest using the docker image as explained on the [autobahn test suite repo](https://github.com/crossbario/autobahn-testsuite#using-the-testsuite-docker-image).
After starting the server, in the same directory, run the test suite in "fuzzing client" mode:
```sh
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.