Flask - WebSocket and Real-Time
You want to create a Flask app with Flask-SocketIO that supports both HTTP and WebSocket connections. Which code snippet correctly sets this up and runs the app?
socketio.run(app, host='0.0.0.0', port=5000) which runs the app with WebSocket support and listens on all interfaces at port 5000. Other options either miss passing app to SocketIO, use app.run() which lacks WebSocket support, or call socketio.run() without app.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions