live streaming picture wihout refresh

19 views
Skip to first unread message

Ovunc Yildirim

unread,
May 28, 2014, 4:16:55 PM5/28/14
to rubyonra...@googlegroups.com
Hello,

application creates a picture and I need to send this created picture to client without refresh. if client rotates the picture new generated one should be send from backend and new generated image should be updated in place. 
Can I use rails live streaming for this set up? maybe encode 64 to json and send it via live stream to client?
Any suggestions?

thanks in advance 
Ovunc

Walter Lee Davis

unread,
May 29, 2014, 8:28:44 AM5/29/14
to rubyonra...@googlegroups.com
That's certainly one way, but have you considered just pulling the new image from the client with Ajax? If the user has pushed some control to rotate the image, you could return the rotated image and the client-side JS could update the view.

Walter

> --
> 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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cd9a0228-8901-44b6-a23c-1a2fd1b1546d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages