2022-02-18 02:44:53 +01:00
# WebSocket Autobahn Test Server
2020-06-19 21:38:11 +02:00
2022-02-18 02:44:53 +01:00
WebSocket server for the [Autobahn WebSocket protocol testsuite ](https://github.com/crossbario/autobahn-testsuite ).
2020-06-19 21:38:11 +02:00
## Usage
2022-02-18 02:44:53 +01:00
### Server
2020-06-19 21:38:11 +02:00
```bash
2021-06-06 19:50:30 +02:00
cd websockets/autobahn
2022-02-18 02:44:53 +01:00
cargo run
2020-06-19 21:38:11 +02:00
```
### Running Autobahn Test Suite
2022-02-18 02:44:53 +01:00
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 ).
2020-06-19 21:38:11 +02:00
2022-02-18 02:44:53 +01:00
After starting the server, in the same directory, run the test suite in "fuzzing client" mode:
2020-06-19 21:38:11 +02:00
```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.