Add null consumer for websocket.receive too.

This commit is contained in:
Andrew Godwin 2016-07-06 12:10:17 -07:00
parent be127611e5
commit d37f9d1ab3
2 changed files with 3 additions and 2 deletions

View File

@ -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):

View File

@ -14,6 +14,6 @@ setup(
install_requires=[
'Django>=1.8',
'asgiref>=0.13',
'daphne>=0.14',
'daphne>=0.14.1',
]
)