"How to Use Python HTTP Request to Send a Request with Long Poll? Best Practices?"

9 Replies, 1384 Views

Long polling is such a rabbit hole, but it’s so useful. One thing that helped me was using `websockets` alongside long polling for real-time updates.

For testing, I use `pytest-asyncio` to test my python http request to send request with long poll setup. It’s a bit of a learning curve, but totally worth it.

Also, don’t forget to use `timeout` in your requests. It’s easy to overlook but super important.

Messages In This Thread



Users browsing this thread: 1 Guest(s)