subscribe

abstract fun subscribe(context: C, id: ModelID<out Any>?): Flow<ModelModification>

Subscribes to model changes.

If a model is changed but the actor is not authorized to read it, the model will be ignored.

Parameters

context

containing the actor that will be used for authorization

id

if provided, subscribes only to changes of the referenced model. If null, subscribes to all models.