mirror of
https://github.com/django/daphne.git
synced 2025-04-20 08:42:18 +03:00
Replaced BindingConsumer with Demultiplexer in routing
Seems BindingConsumer was renamed to Demultiplexer but that was forgotten in the routing. Also there was a missing ``/`` in the ``path``
This commit is contained in:
parent
ad8f4663c8
commit
3744bf5e2f
|
@ -117,11 +117,11 @@ Tie that into your routing, and tie each demultiplexed channel into the
|
|||
``.consumer`` attribute of the Binding, and you're ready to go::
|
||||
|
||||
from channels import route_class
|
||||
from .consumers import BindingConsumer
|
||||
from .consumers import Demultiplexer
|
||||
from .models import IntegerValueBinding
|
||||
|
||||
channel_routing = [
|
||||
route_class(BindingConsumer, path="^binding/"),
|
||||
route_class(Demultiplexer, path="^/binding/"),
|
||||
route("binding.intval", IntegerValueBinding.consumer),
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user