0

I'm new to the MERN stack and I'm looking for a library that allows me to load data in real time, so that when an order is placed, the admin dashboard receives the data right away, with no need to reload. The way I can transmit updates and notifications in real time from the server is beyond me. A tutorial or documentation link would be greatly appreciated. To be completely honest, I have no idea what it is called.

Sazzad Hossain
  • 131
  • 2
  • 11

1 Answers1

0

Well, there is a number of ways you can achieve that.

  • You can use Ajax long or short pulling, which will continuously pull the latest data from the backend.
  • You can use Server Sent Events. This one probably your needs the best.
  • You can use Sockets, and push events from the back-end when data changes.
Ayzrian
  • 2,279
  • 1
  • 7
  • 14
  • Thanks mate, will u tell me What are the best libraries for displaying graphs that are simple to implement? – Sazzad Hossain Oct 18 '21 at 15:56
  • Here is a question that has an answer for you https://stackoverflow.com/questions/7034/graph-visualization-library-in-javascript. I could add from my side that you can use D3 https://d3js.org/ – Ayzrian Oct 18 '21 at 16:25