Closed jonathan-s closed 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.
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.