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

198
Views
SocketIO: conexión no reconocida (?) después de un par de mensajes intercambiados

Estoy ejecutando un cliente JS socketio y un servidor Python socketio. El flujo de trabajo es aproximadamente client emitting event1 to server -> server reacting to event1, running analysis and emitting event2 to client -> client receives event2 and emits event1 again but with different args -> etc until loop is complete

El problema es que este flujo de trabajo solo funciona para dos iteraciones, por alguna razón después de eso, los registros del servidor muestran:

 received event "event1" from None [/] None is not connected to namespace / received event "event1" from None [/] None is not connected to namespace / received event "event1" from None [/] None is not connected to namespace / received event "event1" from None [/]

No tengo ni idea de cual puede ser el motivo. He buscado en los documentos, pero parece que no puedo encontrar ningún parámetro que pueda ser responsable de eso.

Cliente:

 import { io } from "socket.io-client"; export const socket = io("http://localhost:5550/", { timeout: 200000000000 }); socket.emit('event1', args) socket.on('event2', (msg) => { ... });

Servidor:

 app = Flask(__name__) sio = socketio.Server(logger=True, cors_allowed_origins='*') app.wsgi_app = socketio.WSGIApp(sio, app.wsgi_app) if __name__ == '__main__': server = eventlet.wsgi.server(eventlet.listen(('', 5550)), app)

Agradezco cualquier ayuda/consejo que pueda proporcionar, ¡gracias!

about 4 years ago · Juan Pablo Isaza
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!