CallbackManager

sealed interface CallbackManager(source)

Functions

Link copied to clipboard
abstract fun addBroadcastCallback(event: String, callback: (JsonObject) -> Unit): Long
Link copied to clipboard
abstract fun addPostgresCallback(filter: PostgresJoinConfig, callback: (PostgresAction) -> Unit): Long
Link copied to clipboard
abstract fun addPresenceCallback(callback: (PresenceAction) -> Unit): Long
Link copied to clipboard
abstract fun removeCallbackById(id: Long)
Link copied to clipboard
abstract fun setServerChanges(changes: List<PostgresJoinConfig>)
Link copied to clipboard
abstract fun triggerBroadcast(event: String, data: JsonObject)
Link copied to clipboard
abstract fun triggerPostgresChange(ids: List<Long>, data: PostgresAction)
Link copied to clipboard
abstract fun triggerPresenceDiff(joins: Map<String, Presence>, leaves: Map<String, Presence>)