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

python - Creating a new column in a dataframe based on the result of the addition of three others -

string - Using python and postgres, variables within execute function? -