Socket io loop calls emit

I called the emit method of socket in the loop to send events to the front end, and sleep each loop for 1 second. However, in the course of testing, it is found that the front end is cumulative to handle these events. For example, I looped 10 times, and instead of responding to an event every second, the front end processed the cumulative 10 responses together at the end of the final loop.

Mar.02,2021

hi Hello, I would like to ask, do you have a solution now? Thank you very much

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37a61-2c0c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37a61-2c0c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?