https://github.com/riyafa/ballerina-websocket-spec-checker
For checking spec compliancy of Ballerina WebSocket implementation
https://github.com/riyafa/ballerina-websocket-spec-checker
Last synced: 5 months ago
JSON representation
For checking spec compliancy of Ballerina WebSocket implementation
- Host: GitHub
- URL: https://github.com/riyafa/ballerina-websocket-spec-checker
- Owner: riyafa
- Created: 2018-12-11T07:49:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-04T00:27:21.000Z (almost 7 years ago)
- Last Synced: 2025-06-02T11:56:41.414Z (about 1 year ago)
- Language: Ballerina
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spec checker for WebSocket implementaion in Ballerina
For checking spec compliancy of Ballerina WebSocket implementation
(Find details on autobahn test suite here: https://github.com/crossbario/autobahn-testsuite)
- Install `virtualenv`
- Run autobahn test suite:
```
virtualenv ~/wstest
source ~/wstest/bin/activate
pip install autobahntestsuite
```
## To test the server
- Start Ballerina WebSocket server:
`ballerina run server.bal`
- Start autobahn client:
```
cd ~
mkdir test
cd test
wstest -m fuzzingclient
```
- Find the reports in `~/test/reports/servers`
## To test the client
- Start autobahn client:
```
cd ~
mkdir test
cd test
wstest -m fuzzingserver
```
- Start Ballerina WebSocket client:
`ballerina run client.bal`
- Find the reports in `~/test/reports/clients`
Reports are hosted in the following locations:
http://riyafa.github.io/Riyafa-Abdul-Hameed--web-page/others/reports/servers/
http://riyafa.github.io/Riyafa-Abdul-Hameed--web-page/others/reports/clients/
**Note**: There is an issue with the `client.bal` used here because it tries to run tests in parallel which causes some tests
to be missing in the report.