Redis – Interactions between HTTP and websocket connections in Django Channels
I have a frontend consumer that handles HTTP requests (webhooks) from django.views.decorators.csrf import csrf_exempt from channels.generic.http import AsyncHttpConsumer from django.http import JsonResponse import json import myapp.models import redis @csrf_exempt class frontEndConsumer(AsyncHttpConsumer): async def http_request(self, request): await self.channel_layer.group_add("link", self.channel_name) await self.channel_layer.group_send("link",…