On 14 March 2016 at 16:15, Bigmac Turdsplash <li...@ruby-forum.com> wrote:
>
> 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

Please quote the message you are replying to, this is a mailing list
not a forum (though you may be accessing it via a forum like
interface) so it is not clear to what you are replying.  Thanks.

You specifically requested that the script be embedded in the the web
page.  Your example is just live streaming from the controller.

I don't think that href will work very well.  If you look for examples
of using the live feature you will find how to stream into your web
page.

Colin

-- 
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/CAL%3D0gLsP9pA8T8Vg%3DXdxS4ntiM-BOaT6ZxPPesu49brHcfLS2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to