我拥有: ubuntu 14.4 uwsgi运行烧瓶(python),nginx作为反向代理.
我想要的: 运行WebSockets的这个例子:https: //github.com/zeekay/flask-uwsgi-websocket/blob/master/examples/echo/echo.py
当我在端口5000上使用chromepy运行此应用程序时,它工作正常但是当我尝试运行时没有chromepy我得到一个错误
错误:
Thu Jun 12 12:58:24 2014 - you need to build uWSGI with SSL support to use the websocket handshake api function !!!
Traceback (most recent call last):
File "/home/lab_alglab/rep/car/local/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/home/lab_alglab/rep/car/local/lib/python2.7/site-packages/flask_uwsgi_websocket/websocket.py", line 54, in __call__
uwsgi.websocket_handshake(environ['HTTP_SEC_WEBSOCKET_KEY'], environ.get('HTTP_ORIGIN', ''))
IOError: unable to complete websocket handshake
Run Code Online (Sandbox Code Playgroud)