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")
Facts
- Date created
- Aug 27, 2015
- Category
- Last update
- Oct 26, 2016
- Development stage
- Release
- Language
- deDE
- enUS
- esES
- esMX
- frFR
- itIT
- koKR
- ptBR
- ruRU
- zhCN
- zhTW
- License
- CC BY-NC-SA 3.0
- Curse link
- LibLatency
- Reverse relationships
- 3
- Downloads
- 2,745
- Recent files
- R: r15-release for 7.1.0 Oct 26, 2016
- A: r14 for 7.1.0 Oct 25, 2016
- R: r13-release for 7.0.3 Jul 20, 2016
- A: r12 for 7.0.3 Jul 19, 2016
- R: r11-release for 6.2.2 Sep 19, 2015