Skip to content

Commit

Permalink
Merge pull request #35 from kimond/hotfix-websocket-handshake
Browse files Browse the repository at this point in the history
Accept explicitly WebSocket connections.
  • Loading branch information
benjaoming authored Jun 2, 2017
2 parents 82a28e5 + 2450d8a commit 78d96f0
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 78d96f0

Please sign in to comment.