mirror of
https://github.com/django/daphne.git
synced 2025-04-20 08:42:18 +03:00
Add null consumer for websocket.receive too.
This commit is contained in:
parent
be127611e5
commit
d37f9d1ab3
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user