I am thinking of building a little notification box with real-time notification. I used Channels before but for such a little thing it seems overkill. I am looking for a super-simple solution (like HTTP event-source). Here’s the idea:
import asyncio async def clock(request): return HttpResponse(terminator=clock_loop) async def clock_loop(send, end): for _ in range(5): asyncio.sleep(1) await send("hello")
I don’t think this is possible at the moment, not even with StreamingResponse. Is it?