Update socketManager.js