requirements:
Connect to a known remote websocket server, read its incoming messages and display them on the page in real time.
but the address and login information of the remote server need to be kept secret, so you can"t connect to the server directly in the front-end JS code.
status
I have set up a websocket client on the back end using python, which can connect to the server and read information in real time.
question:
I want to open another websocket server on the back end to connect to my page, and then forward the information read from the remote websocket server to my page side through this websocket.
looked at several python websocket server and client models and seemed to run in an endless loop without figuring out what to do to transfer this information flow.