Raspberry PI and Django Channels
John Grant

Hello John — appreciate the article — and I’ve got it working — thanks! I’m a little confused regarding the processing of the message sent to the ‘sensor group’ from the background worker. It seems as though the message by-passes the ws-message consumer method and is ‘injected’ straight to the connected clients invoking the javascript chatsock.onmessage method directly and the ws_message is just idle? Do you know how I (django/channels) would intercept the message sent by the background worker so that I could process it before broadcasting it to the connected clients? Sorry for being thick — I’m finding channels a little hard! Thanks again Kevin

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.