Update socket.service to support updates on an object

socket.service.js only supports updates on an array, this new method allows the user to sync changes on an object, which is also useful.