Ricardo do Valle wrote in post #1122365:
> @Colin the rails server is running in a VPS with nginx and unicorn.
>
> @Fernando, thank you very much, but it is not alternative for this
> project,
> i will study the chrome devs API for a future and another project, have
> you
> used already?
>
> I am looking for a way to create sockets and controls (state machine)
> from
> a rails app or another way to do that.
You do realize that what you're talking about here is VERY DANGEROUS.
Web browsers work very hard to prevent exactly what you're describing
here. This is the reason why JavaScript is sandboxed and provided no
access outside of the browser environment.
That being said, you could write your own browser plugin and do whatever
you want. Of course, you will then be exposing anyone dumb enough to
install your plugin to all the sorts of security holes that ActiveX
based browser plugins, among others, became famous for.
If I were in your shoes I would instead write native applications that
communicate with your Rails application via web services. A good example
of this is the Pivotal Tracker app for iPhone and iPad.
This way you can ask people, that have some trust in you, to install
your native application. It will then communicate directly to your Rails
application and leave the user's browser environment secure and free
from "drive-by" security vulnerabilities.
--
Posted via
http://www.ruby-forum.com/.