Closed dhanababu-nyros closed 7 years ago
I don't know about Tornado, so I'm not sure whether it has support for Flash Socket Policy File. If not, you can run stand-alone socket policy file server e.g. Perl implementation available here: http://www.lightsphere.com/dev/articles/flash_socket_policy.html
Please see this,
No, there is no built in flash socket policy server. If you can find one written for Tornado you can plug it into your handler list, otherwise you'll need to run it as a separate process (running both the tornado process and the flash policy server on different ports) and use a proxy like nginx or haproxy to forward traffic from port 80 to the appropriate process.
any ideas ?
You can run a socket policy server (e.g. Perl implementation) on port 843, and run a Web Socket server (Tornado) on port 80. So you don't need a proxy.
I am currently working on whiteboard app. I am implemented app using Websocket using Tornado framework. The app working on IE10, because it supports WS protocol. But I need to give the support for IE9. But IE9 didn't support WS protocol. So for support IE9 am using Flash socket policy(https://github.com/gimite/web-socket-js).
But I got this error as shown below,
[WebSocket] cannot connect to Web Socket server at ws://localhost/realtime/ (SecurityError: Error #2048) make sure the server is running and Flash socket policy file is correctly placed
Is there any builtin flash socket policy server in tornado? Please help me. Thanks.