A run-once docker container for testing websocket endpoints as part of a CI build or locally
744
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
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:
docker run -e "URL=..." -e "INPUT=..." -e "EXPECTED_OUTPUT=..." antony/websocket-tester
Content type
Image
Digest
Size
21.8 MB
Last updated
over 8 years ago
docker pull antony/websocket-tester