NATSCAT
A Go tool to send/receive input to NATS messaging system, modeled on Unix netcat
and cat
.
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 '>'