I want to serve a real-time stream that has to be securely encrypted due to sensitive data.
I\'ve successfully got normal WebSockets streaming using both gevent and guni
In server side add this to Tornado:
tornadio2.server.SocketServer(application, ssl_options={ "certfile": "server.crt", "keyfile": "server.key", })
In client side, refer to this link: wss://www.example.com:2201/ws, where the 2201 is the secure Websocket's TLS port.
wss://www.example.com:2201/ws