Definir evento en Socketio Python

@sio.event
def my_event(sid, data):
    pass

@sio.on('my custom event')
def another_event(sid, data):
    pass
STEVE-ROLAND NDE TSAPI