Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

389
Views
Transporte WebSocket no disponible. Instale eventlet o gevent y gevent-websocket para mejorar el rendimiento

Estoy usando la aplicación socket io y matraz. Todo funciona, excepto que siempre recibo este mensaje. Esta es mi inicialización:

 app = Flask(__name__) app.config['SECRET_KEY'] = APP_SECRET_KEY jwt = JWTManager(app) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' # app.config['transports'] = 'websocket' socketio = SocketIO(app, cors_allowed_origins="*", async_mode='threading') socketio.run(app, debug=True)

¿Qué puede causar esta advertencia y qué significa?

La consola se ve así: ingrese la descripción de la imagen aquí

  • ya intenté instalar gevent y eventlet y no eliminó el mensaje
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Normalmente, no incluye la opción async_mode cuando crea una instancia de su servidor. Al tener async_mode='threading' , está obligando al servidor a ignorar eventlet y/o gevent e ir con el servidor más básico, que no es compatible con WebSocket.

Así que elimine async_mode , luego instale eventlet (o gevent y gevent-websocket). Ahora su servidor tendrá acceso a WebSocket y no mostrará la advertencia.

over 4 years ago · Santiago Trujillo Report

0

Si el problema ocurrió al ejecutar un archivo python, simplemente intente pip install eventlet funcionó para mí, también puede probar pip install gevent algunas veces, ¡esto también puede ser el truco!

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!