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 -

php - Cannot override Laravel Spark authentication with own implementation -

What is happening when Matlab is starting a "parallel pool"? -