Sign inSign up

antony/websocket-tester

By antony

•Updated over 8 years ago

A run-once docker container for testing websocket endpoints as part of a CI build or locally

Image
0

744

antony/websocket-tester repository overview

⁠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⁠

⁠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:

docker run -e "URL=..." -e "INPUT=..." -e "EXPECTED_OUTPUT=..." antony/websocket-tester 

Tag summary

Content type

Image

Digest

Size

21.8 MB

Last updated

over 8 years ago

docker pull antony/websocket-tester