https://github.com/antony/websocket-tester
A run-once docker container for testing websocket endpoints as part of a CI build or locally
https://github.com/antony/websocket-tester
ci websocket websocket-client websockets ws
Last synced: about 1 year ago
JSON representation
A run-once docker container for testing websocket endpoints as part of a CI build or locally
- Host: GitHub
- URL: https://github.com/antony/websocket-tester
- Owner: antony
- Created: 2018-04-03T16:43:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T16:48:14.000Z (about 8 years ago)
- Last Synced: 2025-02-14T02:53:32.854Z (over 1 year ago)
- Topics: ci, websocket, websocket-client, websockets, ws
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
## Websocket Tester
A very simple way to test if a websocket responds (and in the way you expect it to)
Available as a simple node app or a [Docker image](https://hub.docker.com/r/antony/websocket-tester/)
### Usage
Specify the environment variables:
```
URL: The websocket endpoint.
INPUT: input payload to send to socket.
```
and optionally:
```
EXPECTED_OUTPUT: The output you expect (this will be asserted)
```
If you don't pass EXPECTED_OUTPUT, the response will simply be echoed.
Then, just run:
```bash
docker run -e "URL=..." -e "INPUT=..." -e "EXPECTED_OUTPUT=..." antony/websocket-tester
```