You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to introduce some unit tests. Specifically, we want to ensure that changes in the implementation won't break the interface used by the live gem. While it isn't a huge surface area, we should validate it so that we don't accidentally break it in the future.
replace message.
append message.
prepend message.
dispatch message.
In addition, I don't know much about how we should use dispatch for handling events. We need to write some documentation about how to handle client side events. I assume this is mostly going to be something like:
<divid="my" class="live">...</div>
We need to make it easy to attach event handlers, e.g.
Ideally we can bind this together into a simple and easy to use package. I might be thinking about this the wrong way, but sometimes the server would need to control specific things about the client element, i.e. if it was a movie player, set the current time of playback, etc. Welcome your ideas/thoughts here.
The text was updated successfully, but these errors were encountered:
We need to introduce some unit tests. Specifically, we want to ensure that changes in the implementation won't break the interface used by the
live
gem. While it isn't a huge surface area, we should validate it so that we don't accidentally break it in the future.replace
message.append
message.prepend
message.dispatch
message.In addition, I don't know much about how we should use
dispatch
for handling events. We need to write some documentation about how to handle client side events. I assume this is mostly going to be something like:We need to make it easy to attach event handlers, e.g.
On the server side:
Ideally we can bind this together into a simple and easy to use package. I might be thinking about this the wrong way, but sometimes the server would need to control specific things about the client element, i.e. if it was a movie player, set the current time of playback, etc. Welcome your ideas/thoughts here.
The text was updated successfully, but these errors were encountered: