The thing is ... this code works fine in a different flow. It is only this flow where it is not working.
It looks like the msg is never arriving to the UI-Template with the payload.
I hacked around by displaying the black.jpg, and loading the data in the script.
When I put the data directly in the 'src' attribute, and look in the browser debugger, the 'src' is not even there.
Anyone ever see this before where one flow works but the other does not?
Sooo ... I created a test flow with the exact code I posted, and it worked.
The problem must be something to do with the larger flow. Problem is, I have dependencies on pentair hardware, relays, sensors. All of which will fail if I post the complete flow.
I guess I disable everything and start re-enabling nodes until it breaks to find the offender
Yep, in that case i was opening the dashboard in two different computers. The perceived problem was msg never arriving the ui template in one computer but was all right for the other one. I've spent three or four days trying to understand what was going on. Finally I posted the issue in the forum and @BartButenaers and @dceejay nailed the problem down to the lack of socketid. I can´t say this is the issue you are facing but if you may want to investigate further here is the link to the solution that took me out of the darkness.
The problem was related to some sort of race condition. This part is vague. But, if I started the stream (multi-part-decoder) when the flow started ... always works. If I wait to start the stream until a UI Control msg, it would not start.
Once I started the stream and stopped it, I could not restart it.
The solution was to start the stream immediately, and then use the UI Control to pause/resume the stream to handle the tab going in and out of focus.
This might be a bandaid to a bigger issue, but it is working as desired now.