Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

192
Visualizações
SocketIO - connection not recognized (?) after a couple of messages exchanged

I'm running a JS socketio client and a Python socketio server. The workflow is roughly 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

The problem is that this workflow only works for two iterations, for some reasons after that the server logs show:

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 [/]

I have no idea whatsoever what might be the reason. I've searched through the docs but can't seem to find any parameters that might be responsible for that.

Client:

import { io } from "socket.io-client";

export const socket = io("http://localhost:5550/",
{
  timeout: 200000000000
});

socket.emit('event1', args)
socket.on('event2', (msg) => {
        ...
        });

Server:

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)

I appreciate any help/tips you can provide, thanks!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda