The socket io connection is always offline.

recently made an app, that uses socket io to make a long connection, which sometimes appears. After the connection, it keeps dropping online. I would like to ask if the Great God has ever encountered such a problem.? What should be done? Or is there a solution?

Apr.07,2021

is it a server-side or client-side problem?

if the server actively disconnects the link due to the inactivity of the client, the client can send heartbeat packets at regular intervals to solve the problem.

if the client network is unstable, you need to write the reconnection mechanism on the client.

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-1e5e227-4ce8e.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-1e5e227-4ce8e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?