ws-cli

Dead simple websocket cli

Usage no npm install needed!

<script type="module">
  import wsCli from 'https://cdn.skypack.dev/ws-cli';
</script>

README

ws-cli

npm version Build Status

Dead simple WebSockets cli app.
Sent messages to Ws server using cli.

Install

$ npm install --global ws-cli

Usage

$ ws --help

  Usage: ws [options] message

  Sent messages to WebSocket server using cli.

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -H, --host <string>  WebSocket server host address

  Examples
    Sent 'Hello World' to ws on localhost
    $ ws -H ws://localhost:8080/ Hello World

License

MIT © Nikolay Spiridonov