add example for websocket wss

This commit is contained in:
Diogo
2014-09-30 08:47:31 -03:00
parent 11082987ea
commit ae5069d9b1
+5 -1
View File
@@ -68,7 +68,11 @@ Here is a complete sample web2py action:
https is possible too using 'https://127.0.0.1:8888' instead of 'http://127.0.0.1:8888', but need to
be started with
python gluon/contrib/websocket_messaging.py -k mykey -p 8888 -s keyfile.pem -c certfile.pem
python gluon/contrib/websocket_messaging.py -k mykey -p 8888 -s keyfile.pem -c certfile.pem
for secure websocket do:
web2py_websocket('wss://127.0.0.1:8888/realtime/mygroup',callback)
Acknowledgements:
Tornado code inspired by http://thomas.pelletier.im/2010/08/websocket-tornado-redis/