Skip to content

A tool to measure the latency of messages published on the Ably Realtime Network

License

Notifications You must be signed in to change notification settings

tomweston/latency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LΛTENCY Build License: MIT

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)

Requirements

Latency requires the following environment variables to be set:

ABLY_KEY The Ably key used for authentication


Commands

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


Basic Usage

go build

Instance 1:

./latency subscribe --channel MAIN --event TEST

Instance 2:

./latency publish --channel MAIN --event TEST

About

A tool to measure the latency of messages published on the Ably Realtime Network

Resources

License

Stars

Watchers

Forks

Packages

No packages published