while you can make a restful api with web2py you can't do websocket with 
web2py
you will need an async web server with a non blocking framework (something 
like tornado ...)

if you will only request resources using websockets there is no benefit 
from using web2py
but if you want to use websockets along side a web application you can read 
this example
https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py

On Tuesday, February 14, 2017 at 7:54:07 AM UTC+2, PK wrote:
>
> i tried to use web2py as backend websocket and front end Android Java. CAN 
> I USE websocket messaging in web2py to use real time application ???how 
> should i generate Json  data?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to