0

This might seem like a stupid question and it probably is but here is it anyway: I have a Flutter frontend of let's say a shopping list. All the contents of the page are from a REST API I built in Spring (interfacing with MongoDB) but how can I update the flutter f-e when someone deletes one of the item on the shopping list (through a HTTP request) automatically. It'd be great if the solution wouldn't require the user manually reloading the page or having to check if the JSON content I get back from a request is the same every 20 seconds or so. I'd love to hear if there's a way to do so!

JideGuru
  • 7,102
  • 6
  • 26
  • 48
JamesDev
  • 139
  • 1
  • 1
  • 7
  • 1
    You have to implement sockets. – delmin Jun 27 '20 at 22:54
  • 1
    As @delmin said, you will need to use sockets or another method that allows real-time data flow. See https://stackoverflow.com/questions/11077857/what-are-long-polling-websockets-server-sent-events-sse-and-comet – Gregory Conrad Jun 28 '20 at 00:55
  • @GregoryConrad thank you for the link! I'll look into it and let y'all know how it goes – JamesDev Jun 29 '20 at 00:08

0 Answers0