mirror of
https://github.com/django/daphne.git
synced 2025-08-04 02:20:08 +03:00
Update faqs.rst
This commit is contained in:
parent
60700da0df
commit
ff2f09c3a1
|
@ -138,7 +138,7 @@ a few choices:
|
|||
on it directly. See the :doc:`ASGI spec <asgi>` for the API the channel layer
|
||||
presents. Here's what that looks like:
|
||||
|
||||
>>> from mysite.asgi import channel_layer
|
||||
>>> from yourproject.asgi import channel_layer
|
||||
>>> from channels import Channel, Group
|
||||
>>> Channel("channel_name").send({"text":"channel_text"})
|
||||
>>> Group("group_name").send({"text":"group_text"})
|
||||
|
|
Loading…
Reference in New Issue
Block a user