Broadcast data only on POST request with dJango SSE Server Side Events
I am trying to broadcast SSE to all clients once the user makes a request. I was able to get this basic example up and running async def dashboard_oc_interface(request): “”” Sends server-sent events to the client. “”” async def event_stream(): i = 0 while True: # yield {‘id’ : random.randint(0, 99) , ‘status’ : ‘success’} […]