Custom output payloads with socket.io

Hi, can anyone here help me with my issue: How to override socketio.py to handle custom paylods