1.0.1 • Published 7 years ago
wsping v1.0.1
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 = require('wsping');
wsping({ url: 'ws://echo.websocket.org', timeout: 5000 }, (err) => {
console.log(err);
});
Installation
npm i -g wsping
License
MIT 2017 - José F. Romaniello