Not yet - feel free to file one and tag/label it as a feature request, but it's unlikely to be done soon as there's a lot of foundational work to be done at the moment :)
Andrew On Fri, Sep 8, 2017 at 3:21 AM, <[email protected]> wrote: > Thanks a lot. Is there any Github issue? Maybe if I have time in a future, > I could help out (even though I don't promise anything at the moment, these > weeks are crazy :) > > ---- > > Btw, if I change m2m relationship for this model, I always get an outdate > update -> I'm always one change later on the frontend. Is there any known > issue or I should create one? > > On Thursday, September 7, 2017 at 5:32:22 PM UTC+2, [email protected] > wrote: >> >> Hi, >> >> I'm creating a prototype using Django Channels and I have a question that >> I haven't sorted out yet. First of all, big thanks to all django-channels >> developer, this is something I was missing for a long time. >> So I have a connection that watches on a model and sends updates to a >> frontend. It looks something like this: >> >> from channels import route_class >> from channels.generic.websockets import WebsocketDemultiplexer >> >> from dataSource.models import DataSourceBinding >> >> class Demultiplexer(WebsocketDemultiplexer): >> consumers = { >> "datasource": DataSourceBinding.consumer, >> } >> >> >> def connection_groups(self): >> return ["datasource-updates"] >> >> channel_routing = [ >> route_class(Demultiplexer, path="^/datasource/") >> ] >> >> It works fine as far as some change is done, but I'd like to get initial >> data for an initial render, is there any good trick how to do this? I do I >> need to send a message and do it manually somehow? >> >> Thank you. >> > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/9ca162b6-a4dc-4f5c-8b7d-75593cac3263%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/9ca162b6-a4dc-4f5c-8b7d-75593cac3263%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 [email protected]. To post to this group, send email to [email protected]. 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/CAFwN1ureP3Y2ySasCUro%3DK5iE9mYDeKXAOES8iC%3DP6rvEKajCQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

