LibLatency

Please support my work on Patreon/GitHub

 

A library for transmitting and receiving latency information of players.

API

LL:Register(addon, function)

addon - The name of your addon (string) or your addon object (table)
function - The name of function tied to the addon object (string) or a function reference

LL:Unregister(addon)

addon - The name of your addon (string) or your addon object (table)

LL:RequestLatency(channel)

channel - The name of the channel to request latency on (string) or nil/false/no value for automatic.

  • Valid channels are GUILD, INSTANCE_CHAT, RAID, PARTY.
  • Automatic channel selection only considers the 3 group channels, it doesn't consider the GUILD channel.

Example:

local LL = LibStub("LibLatency")

local function update(latencyHome, latencyWorld, sender, channel)

     print(format("User %s has a home latency of %d and a world latency of %d!", sender, latencyHome, latencyWorld))

end

LL:Register("myAddOnNameOrObject", update)

LL:RequestLatency("GUILD")

 

About This Project

  • Project ID
    94595
  • Created
    Aug 27, 2015
  • Last Released File
    Nov 20, 2024
  • Total Downloads
    20,476
  • License

Categories

Members

Recent Files

WoW Retail

WoW Cataclysm Classic

WoW Wrath of the Lich King Classic