Removed unused socket.io
Removed unnecessary code