wsping

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i wsping

Weekly Downloads

2

Version

1.0.1

License

none

Last publish

Collaborators

  • jfromaniello