title: RuntimeError: You need to use the eventlet server
body: <p>I'm setting up my Flask application like the following:</p>
  
  <pre><code>from flask import Flask, render_template
  from flask_socketio import SocketIO
  
  app = Flask(__name__)
  app.config['SECRET_KEY'] = 'secret!'
  socketio = SocketIO()
  socketio.init_app(app)
  
  # All the code ...
  </code></pre>
  
  <p>When running uWSGI, I pass these parameters: </p>
  
  <pre><code>uwsgi --socket app.sock --http-websockets --master --wsgi-file app.py --callable app
  </code></pre>
  
  <p>But doing this, I get the following error: </p>
  
  <blockquote>
    <p>RuntimeError: You need to use the eventlet server. See the Deployment section of the documentation for more information.</p>
  </blockquote>
  
  <p>I suspect that the <code>app</code>returned by my code does not wrap the SocketIO system, so when using uwsgi, it fails using eventlet.</p>
  
  <p>What should I serve to uwsgi to make it work?</p>