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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -