On Wed, 27 Aug 2008, Bluebie, Jenna wrote:

> I'm thinking about web browser access, for instance, links that make things
> happen in shoes apps. I'm wondering if it's reliably possible to make ajax
> requests to localhost:someport in webapps hosted on internet domains? That
> would make for a pretty nifty way of sending shoes apps data, and even
> possibly returning data back at the end, essentially turning Shoes in to a
> simple web server with camping-like functionality.

You should be able to do that with webrick.  Not that I've done much of
this myself, but if you have the PickAxe, there's at least one example
in there IIRC.
> 
> It occurs to me though that this is all stuff which could be implemented in
> pure ruby, as it is in camping itself! Maybe this could be a fun little gem to
> build for desktop apps that communicate with web pages. We could even marshall
> the data in to json and make it somewhat JSON-RPC 1.1 compliant, be kinda
> nifty! :)

Shoes on Rails?  That would be skates, then....
> 
> I can imagine a LAN based IM app that would send messages by making http
> requests to the other user's shoes instance that call a method which adds a
> message to a stack. Fun fun.

Or you could use dRuby, and the Rinda Ring. I've done stuff with Rinda, 
but not got into the Ringserver.

        Hugh

Reply via email to