From e1bd6bc6ad552e9885ed587073cbd62dffc78e1c Mon Sep 17 00:00:00 2001 From: catvayor Date: Tue, 25 Feb 2025 17:05:57 +0100 Subject: [PATCH] fix(kfet/ws): 'type' field is required --- kfet/utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/kfet/utils.py b/kfet/utils.py index e7ec91c2..d5df3228 100644 --- a/kfet/utils.py +++ b/kfet/utils.py @@ -72,9 +72,6 @@ class DjangoJsonWebsocketConsumer(AsyncJsonWebsocketConsumer): @classmethod async def encode_json(cls, content): - # Remove the type value, only used by Channels to choose the group to send to - content.pop("type") - return json.dumps(content, cls=DjangoJSONEncoder)