https://youtu.be/O9w_hxoxtW0

Here is a demo that I can make work for my situation.
With the actioncontroler::live Module.

10.times do |X|
Response.stream.write("hi world #{X}")
Sleep 1
End
Ensure
Response.stream.close

As for a button to trigger the event, ill have to make due with a 
href=>/liveStream-hiWorld.ntml.erb

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/2f057ea96f354ca4024a99e8e8ef3433%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to