A Go tool to send/receive input to NATS messaging system, modeled on Unix netcat
and cat
.
go get github.com/shogsbro/natscat
# 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
# Listen to a specific subject, writing messages in buffered mode (CRLF appended)
natscat -l -s test -b
# Listen to all subjects
natscat -l -s '>'