Live Graphing Data fetched from a Lora Server

Hi, it’s my first post in the forum of this site and I am very very new to dash world. I am trying to create a dash app to visualize (nearly) live data, requested through the MQTT protocol as a client to a LoraWAN server. I have written the code for requesting the data from the server but can’t choose what way to grab the data from the first client python file and post it by dash on a dashboard as live streaming. As I don’t know a way that dash app could be both a server and a client simultaneously, I decided to write the requested data into a CSV file, but then I can’t refresh my dash app or both read the CSV and write to it simultaneously. I have no experience in databases, but now I’ve read about Alchemy database which could do that.
DON’T KNOW WHICH WAY TO CHOOSE, CAN SMO HELP or ADVISE ME!?

Excuse me for my English, I am a girl from Bulgaria…

Hi!
I have solved my problem through the fact that I succeeded to link my two files - server and client python files in one file and now it works.