title: Python socket.io client events
body: <p>I am using this <a href="https://python-socketio.readthedocs.io/en/latest/client.html" rel="nofollow noreferrer">Python socket.io client library</a>. 
  This is part of the python code which is used to instantiate and connect to the socket io server:</p>
  
  <pre><code>import socketio
  
  sio = socketio.Client()
  logger.info('Created socketio client')
  sio.connect('https://server.com/socket.io/')
  
  @sio.event
  def connect():
      logger.info('connected to server')
  
  @sio.event
  def disconnect():
      logger.info('disconnected from server')
  </code></pre>
  
  <p>The logger message 'Created socketio client' is printed out but it does not show the 'connected to server' message. However, during manual closing of the server connection, the 'disconnect' callback is activated... What went wrong here? I am using a nginx proxy here fyi.</p>