ruby on rails - Broadcast message to client after specific time in action cable -


i have used action cable in rails 5. want broadcast message server after wait of n seconds. made r&d same not find useful. can please advise me on how broadcast message client after waiting n period of time?

it's simple as:

settimeout(function () {    app.message.speak(value); },500); //500ms 

just out of curiosity, actioncable slow (i recommend anycable), why want fabricate further delay..?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -