Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 706 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 706 Bytes

NATSCAT

A Go tool to send/receive input to NATS messaging system, modeled on Unix netcat and cat.

License MIT

Installation

go get github.com/shogsbro/natscat

Basic Usage

Sending to a NATS subject

# Send a message to subject 'test'
natscat -s test -m "Test message"

# Send contents of a file to subject 'test'
natscat -s test <README.md

Listening on a NATS subject

# Listen to a specific subject, writing messages in buffered mode (CRLF appended)
natscat -l -s test -b

# Listen to all subjects
natscat -l -s '>'