add example for websocket wss
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user