Do Realtime Listeners work with the Transaction api?

I’m testing a reatime listener to get updates from the database but the update is being made via the Transaction API and the listener doesn’t appear to hear it.

image

If I manually update the businessName property directly in the database or send an update via the REST console it works fine and the property updates on the page in desktop preview (using binding data on a text block), but if I update the same property via an api service in Cloud Code that uses the Transaction api it misses it.

Your observation is correct - the real-time listeners are not triggered for individual transaction operations.

Regards,
Mark

That’s a pity! I presume the same is true for Deep Save since it’s based on the Transaction api?

Is there any way round this with Transactions or is it just a limitation I need to live with?

You are correct about DeepSave as well. A workaround is to publish a message when transaction finishes execution.

Regards,
Mark

Excellent, that worked a treat, thanks Mark.