@sio.event def my_event(sid, data): pass @sio.on('my custom event') def another_event(sid, data): pass