1, I wrote a function fun will cycle to monitor another software to send information, receive information,
I regard him as a threading threads, task1=Thread (target=fun, args=(q)
2, more than I need to receive information push to the front, others recommend I use flask_socketio
My idea is this socketio push related function as another thread task2, you can through the team and the other thread communication
But how to package? After encapsulation simply can't get the information from the queue, will go wrong,
The warrior send push to the front of information code send me for reference? Not looking for a lot of online, you can send me email [email protected], thank you!