update application to sails and socket.io app