mirror of
https://github.com/codex-storage/nim-websock.git
synced 2025-01-23 00:49:15 +00:00
90c664545d
* implement UTF8 handling or to be precisely, we add UTF8 validator which main duty is to detect malformed UTF8 sequence using a fast DFA UTF8 decoder. also enable autobahn UTF8 category tests, much more green :) fixes #13 * fixes case 7.5.1 Send a close frame with invalid UTF8 payload * add tests for validateUTF8 - tests for validateUTF8 in raw mode - tests for validateUTF8 in websocket client/server
Running autobahn test suite.
Start the websocket server
nim c -r examples/server.nim
Install autobahn
# Set up virtualenv in autobahn folder
virtualenv --python=/usr/bin/python2 autobahn
# Activate the virtualenv
source autobahn/bin/activate
# Install autobahn
pip install autobahntestsuite
Run the test Websocket client.
wstest --mode fuzzingclient --spec fuzzingclient.json
Reports will be generated in reports/server
which can be configured in fuzzingclient.json