jonathan-s / django-sockpuppet

Build reactive applications with the django tooling you already know and love.
https://github.com/jonathan-s/django-sockpuppet
MIT License
450 stars 22 forks source link

Trigger handler subscription handler on messages #28

Closed jonathan-s closed 4 years ago

jonathan-s commented 4 years ago

When a new message arrives. We can mimic the functionality which is done here: https://github.com/rails/rails/blob/0ffafd475bf4dbc2d0d30b0f06c99af9fbe22f01/actioncable/app/javascript/action_cable/connection.js#L139

So that we don't need to add our own version of these handlers and instead re-use the handlers in the javascript version of stimulus reflex.