From ae5069d9b17ba26dc280abb32e3a26f35949dfb0 Mon Sep 17 00:00:00 2001 From: Diogo Date: Tue, 30 Sep 2014 08:47:31 -0300 Subject: [PATCH] add example for websocket wss --- gluon/contrib/websocket_messaging.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gluon/contrib/websocket_messaging.py b/gluon/contrib/websocket_messaging.py index 81705620..1cd7e13f 100644 --- a/gluon/contrib/websocket_messaging.py +++ b/gluon/contrib/websocket_messaging.py @@ -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/