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. For more options, visit https://groups.google.com/d/optout.

