1
0
mirror of https://github.com/actix/examples synced 2024-12-18 00:13:57 +01:00
examples/websocket-autobahn
Bart Willems 399fbee1e4
send the correct exit code when closing the websocket (#335)
Signed-off-by: Bart Willems <bwillems@protonmail.com>
2020-06-25 05:20:27 +01:00
..
config Add bare-bones WS server for autobahn testing (#331) 2020-06-19 20:38:11 +01:00
reports Add bare-bones WS server for autobahn testing (#331) 2020-06-19 20:38:11 +01:00
src send the correct exit code when closing the websocket (#335) 2020-06-25 05:20:27 +01:00
Cargo.toml Add bare-bones WS server for autobahn testing (#331) 2020-06-19 20:38:11 +01:00
README.md Add bare-bones WS server for autobahn testing (#331) 2020-06-19 20:38:11 +01:00

websocket

Websocket server for autobahn suite testing.

Usage

server

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.

First, start a server (see above). Then, run the test suite in fuzzingclient mode:

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.