iocat

WebSocket netcat with Socket.io support

wscat

A WebSocket netcat-like utility.

An alternative to the built-in wscat binary, packaged with ws.

  Usage: wscat [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 conntects

WebSocket Server

# wscat -l -p 3050
> Hello !
< Hi !

WebSocket Client

# wscat ws://127.0.0.1:3050
< Hello !
> Hi !

Socket.IO Server

# wscat --socketio -l -p 3050
> Hello !
< Hi !

Socket.IO Client

# wscat --socketio ws://127.0.0.1:3050
< Hello !
> Hi !