Flask server to notify webclient when changes occur

654 views Asked by At

I am building a server using Flask that will be called by a web client.

When a certain change occurs on the db my Flask app interacts with, I need the web client to be alerted so it can display the update.

Would someone be able to give me some direction as to what I should be looking into with regards to both the Flask and web client sides?

Thanks.

1

There are 1 answers

1
vicg On BEST ANSWER

The terminology you are using is a little confusing. I'm going to assume the web client is someone visiting your Flask app over the internet.

Basically, if you want the ability for the server to push updates to the client you need to use websockets

http://en.wikipedia.org/wiki/WebSocket