I think what you want is a url re-writing proxy that can also modify the content of the page itself. That ws link should be replaced by a wss link pointing to your proxy
This may help get you started:
https://samanbaboli.medium.com/modify-html-pages-on-the-fly-using-nginx-2e7a2d069086
Hi,
I'd like to be able to access temps via php script or via powershell, or via REST request... I've been doing this with open hardware monitor for a while, but it's proven unreliable (sometimes CPU temp just doesn't show on some machines.) HWInfo seems like a better tool anyhow, but I do...