Verify websocket connectivity.
Usage
wsping [options] <url>
Options:
--timeout, -t Maximum time in seconds allowed for connection. [default: 5]
--help, -h Show help [boolean]
Example:
» wsping ws://echo.websocket.org
Successfully connected to ws://echo.websocket.org.
» wsping ws://example.com
Error: unexpected server response (200).
It can also be used as a library:
const wsping = ; ;
Installation
npm i -g wsping
License
MIT 2017 - José F. Romaniello