The reconnection of

  node.js, question

The version of is 1.3.5. after the client side triggers disconnect, when connecting again ( will reuse the previous socket object by default), the Server side connection method cannot be executed, thus making the events bound in the connection impossible to execute.
The online setting socket = io.connect (“localhost: 3000”, {‘forcenewconnection’: true}) doesn’t work either.
Solution: How to Release socket Resource after disconnect Triggers

Just reconnect the original object to initiate the connection.
socket = socket.connect …