Socket.io connection keep increasing each time a new connect has been made
问题 I'm using Express4 with a router that points to path / , and that is handled by a JS file named chat.js . And my IO object is already bind to app.io , so inside my chat.js I'll call my Socket.IO by using req.app.io , but the problem is, I use to be using socket.emit and the code just work fine, but now if I want to sync up with the client I have to using req.app.io.emit . And since because I'm using req.app.io.emit , I have the connection keep increasing problem. index.js const express =