subscribe

fun subscribe(action: suspend (EntityChange) -> Unit): suspend (EntityChange) -> Unit

Registers a specific state-change action for alerts and returns the action.