Update to index.js add socketIO events