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

onJoin

fun onJoin(callback: (key: String, currentPresence: Entry?, newPresence: Entry) -> Unit): Unit

Set the callback for join event

Note: the callback might be called on another thread

Parameters

callback - The function to be called on join