how do node and socket.io take the initiative to send messages to the front end
I use node to read data from the database, and send new data directly to the front end. Because the database is sometimes updated several times in a minute, node reads it and sends it out.
the foreground user can just leave the page open
now users have to send an event to the backend
how to solve
Thank you