A Golang CLI tool used to measure the latency of messages published on the Ably Realtime Network. It utilises a structure of commands, arguments & flags. It supports Fully POSIX-compliant flags (including short & long versions)
Latency requires the following environment variables to be set:
ABLY_KEY
The Ably key used for authentication
publish - Publishes a message on the Ably Realtime Network and prints the latency of the message
latency publish --channel MAIN --event TEST
subscribe - Subscribes to the Ably Realtime Network and prints the latency of the message
latency subscribe --channel MAIN --event TEST
help - Prints the help text for the command
go build
Instance 1:
./latency subscribe --channel MAIN --event TEST
Instance 2:
./latency publish --channel MAIN --event TEST