0

I have a flask web app that shows data from sqlalchemy to the user. I want the app to fetch any new data when it is added to the database automatically without further ado from the client-side (something like news feeds). How do I achieve that. I know that I should use socket.io but don't know-how. All examples in google are about chat app. It would be very helpful if somebody could give me the roadmap to do it. The front end in js and the backend is in flask python. any help will be appreciated! Thanks

1 Answer 1

1

If you want to change content of the page without reloading then using ajax could be best solution but if you want to change the content in real time (after new data added into database) the you may wait for other answers. Here's the idea for ajax.

Sign up to request clarification or add additional context in comments.

2 Comments

thank you for your answer but I need the update to be in real-time!
Try visiting these sites and do your own research about it.medium.com/@abhishekchaudhary_28536/… codeburst.io/… this will help you to understand sockets.io and how it works and made your decision weather to work with this or there could be other alternatives for this also.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.