The example you give doesn’t sound unreasonable to me to be fair.
I haven’t pushed the actual events over websockets to a web app before though.
What I did do before on a project, was update our views/query side based on the events applied through Axon, and push the updated view using STOMP - WebSockets.
We just pushed delta’s by the way.
In short: having a class with
@EventHandler annotated functions emit the actual events directly over WebSockets as in your example, should be doable.
Hope this helps.