Update socket.mock.js to support updates on an object