I have one query regarding real time data update

I am working on MERN stack project. Right now I am getting data from one game and storing that data into Mongodb. also displaying that data onto React page. But i need to display realtime data when player join to game data will be stored in database. to see that data refresh page in React. I need to show player real time data when joins game how can i do that?