From d37f9d1ab3034e6eba425274f529fbcb162a7581 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 6 Jul 2016 12:10:17 -0700 Subject: [PATCH] Add null consumer for websocket.receive too. --- channels/routing.py | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/channels/routing.py b/channels/routing.py index a5593a6..76c2464 100644 --- a/channels/routing.py +++ b/channels/routing.py @@ -55,8 +55,9 @@ class Router(object): self.add_route(Route("http.request", http_consumer or ViewConsumer())) # We also add a no-op websocket.connect consumer to the bottom, as the # spec requires that this is consumed, but Channels does not. Any user - # consumer will override this one. + # consumer will override this one. Same for websocket.receive. self.add_route(Route("websocket.connect", null_consumer)) + self.add_route(Route("websocket.receive", null_consumer)) @classmethod def resolve_routing(cls, routing): diff --git a/setup.py b/setup.py index 6f3f0f6..673eb15 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,6 @@ setup( install_requires=[ 'Django>=1.8', 'asgiref>=0.13', - 'daphne>=0.14', + 'daphne>=0.14.1', ] )