We have Django Channels running with Daphne and redis. Before we had django-websocket-redis running and it supports a heartbeat (ping) message out of the box. Our client code depends on this heartbeat to confirm an active connection, but in django we don't really care if it is still active or not.
Because of this we don't need to keep track of everything server side but we do need to send the heartbeat.
How do I send a heartbeat / ping message using channels or daphne? I can't find any docs on this.
The old implementation with django-websocket-redis just sends a websocket message "--heartbeat--"
every n seconds. docs reference
I have read Daphne sends pings but I haven't seen them show up anywhere, my websocket connection just stays open.