Skip to content

Commit

Permalink
Accept explicitly WebSocket connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimond committed Jun 1, 2017
1 parent 82a28e5 commit 2450d8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django_nyt/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2450d8a

Please sign in to comment.