CallbackManager

Functions

Link copied to clipboard
abstract fun addBroadcastCallback(event: String, callback: (JsonObject) -> Unit): RealtimeCallbackId.Broadcast
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun presenceState(): Map<String, Presence>

Returns the current presence state as a map of keys to Presence objects.

Link copied to clipboard
Link copied to clipboard
abstract fun reset()
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<Int>, data: PostgresAction)
Link copied to clipboard
abstract fun triggerPresenceDiff(joins: Map<String, Presence>, leaves: Map<String, Presence>)