I am using this Python socket.io client library. This is part of the python code which is used to instantiate and connect to the socket io server:
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')
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.