From 2450d8ad906d0efa13dc0edffd22124eeed42362 Mon Sep 17 00:00:00 2001 From: Kim Desrosiers Date: Thu, 1 Jun 2017 09:18:01 -0400 Subject: [PATCH] Accept explicitly WebSocket connections. --- django_nyt/consumers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django_nyt/consumers.py b/django_nyt/consumers.py index 384ba414..2f6947b8 100644 --- a/django_nyt/consumers.py +++ b/django_nyt/consumers.py @@ -19,6 +19,7 @@ def ws_connect(message): Connected to websocket.connect """ logger.debug("Adding new connection for user {}".format(message.user)) + message.reply_channel.send({"accept": True}) for subscription in models.Subscription.objects.filter(settings__user=message.user): Group(