Category: server-sent-events

Command and Controller shared data, using Symfony and Mercure for realtime?

1. The controller. I have a Controller Action (than is an API), which loads currency rates from the database, does some processing, and returns a result in JSON, like this: { “EUR”: “186.34”, “GEL”: “646.77”, “PLN”: “839.16”, “RUB”: “14532.60”, “USD”:…