Change format of request to "subscribe to model change" #189
Replies: 2 comments
-
So as I understand it you would like to create an Rather than explicitly setting the model type in the consume you would like the client to be able to select this? unfortunately due to how django works if we want to be able to observe updates properly we need to have the However if you are ok with adding multiple ManyModelObserveringConsumerI could also see a mixin (or baseclass) were you might provide at list of models. This could then automatically provide
But this would remove the ability to customise the ObserverModelListMixinFor this reason i think it might be better to create a Then to expose multiple model types I would suggest using a Multiplexer. |
Beta Was this translation helpful? Give feedback.
-
Regarding a browser alternative to python dcrf-client try Smart Websocket Client |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I'm feel a bit frustrated when I need to implement model observer subscribe. I want the client send this:
instead of
Describe the solution you'd like
Um, same as above?
Describe alternatives you've considered
I see https://github.com/theY4Kman/dcrf-client but I want a more simple client from web browser
Additional context
Please guide me, I will implement and make pr. Currently, I had a dirty hack by manually add to
available_actions
, but don't know how to callsubscribe()
for model updateBeta Was this translation helpful? Give feedback.
All reactions