https://github.com/hypothesis/websocket-tester
Testing tool for Hypothesis WebSocket
https://github.com/hypothesis/websocket-tester
Last synced: 11 months ago
JSON representation
Testing tool for Hypothesis WebSocket
- Host: GitHub
- URL: https://github.com/hypothesis/websocket-tester
- Owner: hypothesis
- License: bsd-2-clause
- Created: 2023-09-20T10:29:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-21T08:53:20.000Z (over 2 years ago)
- Last Synced: 2024-03-21T10:35:38.656Z (over 2 years ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# websocket-tester
Tools for testing the Hypothesis [Real Time API](https://h.readthedocs.io/en/latest/api/realtime/).
## Installation
This project uses [Pipenv](https://pipenv.pypa.io). To install dependencies,
run:
```sh
pipenv install
```
## Usage
To run tests, you need to specify the WebSocket endpoint that you want to test
against. The WebSocket endpoint for a particular instance of H can be obtained
from the `/api/links` endpoint:
```sh
$ curl -s https://hypothes.is/api/links | jq .websocket
"wss://h-websocket.hypothes.is/ws"
```
Run the tool with:
```sh
pipenv run python -m websocket_tester --endpoint
```