Restful to serve a websocket - architecture with a single thread and asyncio?
问题 I have a websocket that I access from python as below. I then want to expose this websocket (with slightly altered data) over a restful interface (it cannot be a websocket for my purposes), where a client can ping it, and should get the latest fully up to date information (each time the full dataset from the beginning). How can I avoid that the websocket from restarting each time the client pings the restful interface? The code looks as follows: websocket: class WebSocketExample: async def