update package.json and add sockets functionality