phoenix-channel / ch.kuon.phoenix / Presence / onLeave

onLeave

fun onLeave(callback: (key: String, currentPresence: Entry?, leftPresence: Entry) -> Unit): Unit

Set the callback for leave event

Note: the callback might be called on another thread

Parameters

callback - The function to be called on leave