Friday, September 30, 2016

Subscribe / unsubscribe to data streams over websocket channel


 Channels + databinding is a great way to push updates to clients of an API. I'm wondering however if there are any good examples of the client being able to subscribe and unsubscribe to streams of data over an existing websocket/channel pair (while making use of databinding)

 For example, will send a message like this from the client to the server when it wants to get a particular data stream over the websocket:


 I'd like to provide this kind of protocol to my clients. I think it may have to go into a custom consumer, but any examples / insights into this pattern would be greatly appreciated.


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
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment