I want to automate and monitor my websocket connection whether it is able to send successful response for the connection request. I know different plugins already available but I am looking for a script whether in bash or ruby so that it can test my websocket connection and successful message .
Any help will be very much appreciated .
curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H "Origin: http://www.websocket.org" http://echo.websocket.org
http://www.websocket.org is host origin, and
echo.websocket.org is endpoint for websocket.
Those flags say:
If your WebSocket is working running the above should return the handshake information, for further information, refer to this post