/websocket-test

WebSocket connectivity test

Primary LanguageShell

websocket-test

Docker-image for WebSocket connectivity test.

How to

Start contaienr

$ docker run -d -p 8010:8010 --name websocket-test jmnote/websocket-test

Connect to container with WebSocket

$ npm install wscat
$ wscat --connect ws://$(CONTAINER_HOST_IP_ADDRESS):8010

connected (press CTRL+C to quit)
> Hello world

< Server received from client: Hello world
>

Check your container log

npm info ok
Server started
Received from client: Hello world

It works!!!