Update smart-socket.js