0.4.1 • Published 10 years ago

iocat v0.4.1

Weekly downloads
20
License
MIT
Repository
github
Last release
10 years ago

iocat

Build Status Dependency Status npm.io npm.io npm.io

Socket.IO and WebSocket netcat-like utility.

npm.io

Usage

$ iocat --help

  Usage: iocat [options] URL

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -v, --verbose            verbose
    -l, --listen             Start in listen mode, creating a server
    -p, --local-port <port>  Specify local port for remote connections
    --socketio               Use socket.io
    -k, --keep-listen        Keep inbound sockets open for multiple connects
    -e, --emit-key <key>     Emit-key, default is "message"

Examples

WebSocket Server

$ iocat -l -p 3050
> Hello !
< Hi !

WebSocket Client

$ iocat ws://127.0.0.1:3050
< Hello !
> Hi !

Socket.IO Server

$ iocat --socketio -l -p 3050
> Hello !
< Hi !

Socket.IO Client

$ iocat --socketio ws://127.0.0.1:3050
< Hello !
> Hi !

Install

npm install iocat -g

Alternatives

The WebSocket part is an alternative to the built-in wscat binary, packaged with ws.

License

MIT

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.0.5

13 years ago

0.0.4

13 years ago

0.0.2

13 years ago