When you run your app using pyjd it is python code that is executing and because you are not running within the constraints of a browser you have access to any python libraries you wish to use, e.g. Pyro4 is using the select library for monitoring activity on network sockets which I assume it uses for communication.
When you compile your code using pyjs you are generating javascript code from your python source code which you then execute in a web browser. Note you are running javascript in a web browser so you have all the usual limitations of web browsers (e.g. no access to low level socket interface) you also only have access to any libraries that are pure python (no libraries written as C extensions will work) and don't do things like write to local file system or try and use sockets. On Sat, Sep 28, 2013 at 2:22 PM, Clavier <bachcalv...@gmail.com> wrote: > Hello. > > What is the best way to build a chat application in Pyjs framework? I > cannot find a demo or example for chat or relevant application in Pyjs. I > need callback features (server-to-client call). It seems that JsonRPC and > Web.py don't support callback. > > I built it using Pyro4 library supporting callback. It worked beautifully > in desktop (Pyjd), but I found that Pyro4 didn't work in Pyjs for > webbrowser ("ImportError: No module named selelect" (which is a socket > library)). If Pyjs doesn't support socket communication in client side (or > callback to client), what is the best way to build a chat application > requiring callback features? > > Thanks in advance > > > -- > > --- > 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. > -- --- 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.