for await of loop will block the code and page keeps loading till WebSocketStream connection ends, so I did that.message.value = msg not update the button text, it is stuck at the initial Connecting text.message.value = 'updated outside of the IIFE' then it works fine, the value is updating as expected.console.log(msg) inside the IIFE's for await of loop also works and logs the msg to the console, but still message.value = msg doesn't. Why ??