Using Flask-Socketio and Flask-Mqtt:
@mqtt.on_message() def handle_mqtt_message(client, userdata, message): ### Extract from Payload ### payload_list