Socket.io disconnection reconnection problem!

Project is a chat room project. After the user joins the room, the phone lock screen will be disconnected, so that the user will not notify the person in the room when the user opens the screen. How to use the disconnection reconnection mechanism of socket, so that the user can speak directly and do not have to re-enter the room?

Jan.08,2022

reconnect event should be able to solve the problem

Menu