I had this code and was working fine, just notices that the ‘event.keyCode’ is depricated as VScode saying so i chagnged it to so the problem i face now with the both options above is that the input doesn’t get cleared after i press the button or clear press enter if use this and press enter i don’t get the
Tag: actioncable
Can I use ActionCable to refresh the page?
I’ve recently been trying to create a live-scoring system for squash matches. I’ve managed to use ActionCable with Rails 5 to auto-update the score on the page, but I’d like to know if it’s possible to tell Rails to refresh the page if a certain condition is met. For example, if the game has finished, a different page is shown