I am trying to proxy an application that uses a combination of static web page, websockets, and the "onion" interface library (GitHub - davidmoreno/onion: C library to create simple HTTP servers and Web Applications.). The static part forwards fine, but the websocket content does not come through -- there is supposed to be an animated display of radio spectrum, and an audio stream, and neither appears when viewing the website via the proxy, though the site works fine when viewed directly on the same browser. A clue is that when I try to start the audio stream there is an error
which leads me to think that there might be some sort of TLS issue. I am not sure where to go from here to troubleshoot this further. Any suggestions would be greatly appreciated!
The problem was solved by a change in the server application. The web socket was being created as an insecure socket with "ws://". Changing that to "wss://" makes everything work fine.