Not at the moment, the delay server is not built with that in mind. It
could be extended to do so if you wanted to look into it.

Andrew

On Mon, Mar 6, 2017 at 2:09 PM, Adrián Cuesta <adriancuestarie...@gmail.com>
wrote:

> Hi
>
> Is there any way to send delayed messages to Group instead of a Channel?
>
> The delay server example here
> <http://channels.readthedocs.io/en/stable/delay.html#delaying-messages>
> gives this example:
>
> from channels import Channel
>
> delayed_message = {
>     'channel': 'example_channel',
>     'content': {'x': 1},
>     'delay': 10 * 1000
> }
> # The message will be delayed 10 seconds by the server and then sent
> Channel('asgi.delay').send(delayed_message, immediately=True)
>
>
> I would like to use the same but with Group, this way:
>
>
> from channels import Group
>
> delayed_message = {
>     'channel': 'example_channel',
>     'content': {'x': 1},
>     'delay': 10 * 1000
> }
> # The message will be delayed 10 seconds by the server and then sent
> Group('asgi.delay').send(delayed_message, immediately=True)
>
>
> Can someone give some feedback about this?
>
> Thanks,
>
> Adrián
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/ce74c6c7-18b4-4b7e-83fe-e2cc4f6bbd1e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ce74c6c7-18b4-4b7e-83fe-e2cc4f6bbd1e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFwN1uqoCT%2B%3DT3L%2BL3RHvdkxM7sNQX91kXwGeGSbMdjmEzuKkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to