On Oct 5, 2013, at 8:54 PM, Clavier <bachcalv...@gmail.com> wrote:

> I was able to build a web RPC module similar to Pyro4 based on the 
> long-polling technique you mentioned. It was built by only using Pyjs's 
> HTTPRequest.asyncPost(). No javascript code was needed. It is a simplified 
> web version of Pyro4.  So, I think that I can transplant the existing chat 
> module running on Pyro4 into Pyjs easilly. I will go further and post the 
> result here soon.

For what it's worth, Pyro has very dangerous security properties and you should 
not be exposing an API like that to a web browser.

You may be interested in reading this:

<http://glyph.twistedmatrix.com/2008/07/static-on-wire.html>

> Thanks for directing me into the right direction.  I was impressed that a web 
> chat application could be made by only using Pyjs HTTPRequest.

Cool!

It's still probably worth implementing more modern stuff like websocket to 
optimize this, beneath whatever API you've put on top of asyncPOST.  But this 
is a good place to start and I'm glad it worked out well for you.

-glyph

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyjs-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to