I’m trying to implement updating the UI from another thread (which I’ve done before) however this time it is on a Exported Component in my Micro Services environment. If I add the @Push annotation to the WebComponentExporter class, although the application shows up looking how it should, it doesn’t respond to any interaction, i.e. button clicks are ignored. (there is no network requests at all).
If I remove the annotation, its back to normal, but I loose the push functionality.
Ok, it was an issue with the websocket connection. My Dev environment bounces the connections via a Apache server though a SSH tunnel. (So I can let people view my live dev env without me having to deploy it anywhere.)
So the issue was the websocket wasn’t being passed thought the SSH tunnel. So I added a rewrite rule to fix said issue
RewriteEngine On
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:1802/$1 [P,L]
Edit: to add, my web server has SSL enabled, so it may have been trying to pass wss:// to my application, hence the need to rewrite it to ws://