index.js: added socket.io support in backend