Are you accepting the connection in a consumer on `websocket.connect`? Is there some proxy in the way that's dropping WebSocket packets, meaning the ping times out and Daphne closes it?
There's a lot of reasons why a websocket can close after a timeout, and most of them are related to your setup and network rather than Channels. Andrew On Tue, Jun 6, 2017 at 10:59 AM, Okok kokok <bouslim.y...@gmail.com> wrote: > Hello, > > I dont't understand why websocket disconnect alone... > I run with these commands : > > - > > daphne -e ssl::privateKey=<path to .key>:certKey=<path to .cer> > .asgi:channel_layer -p -b 0.0.0.0 > - > > python3.5 manage.py runworker > > I have this : > 127.0.0.1:50398 - - [22/May/2017:11:30:01] "WSCONNECTING /" - - > 127.0.0.1:50398 - - [22/May/2017:11:30:01] "WSCONNECT /" - - > 127.0.0.1:50398 - - [22/May/2017:11:30:51] "WSDISCONNECT /" - > > It disconnect approximately 30 seconds after connection. > I want that all connection persists. > > 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 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/CAMdJP%2Bj-hWTrazMCojRNL%3D_T7SrgFvL- > iMaRRryqHWgy5cyLuQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAMdJP%2Bj-hWTrazMCojRNL%3D_T7SrgFvL-iMaRRryqHWgy5cyLuQ%40mail.gmail.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/CAFwN1uo4B3GHWMgdG8-pfuxybrZ_J0nyUTa9RpV_2-qsv53F_w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.