updateInstance
Programatically indicate a new instance has been updated.
    connection.updateInstance(props)
  
  Calls updatedData in the right way so that the instance is updated and added to or removed from any lists it belongs in.
Parameters
- props {Object}:The properties of the instance that needs to be updated. 
Returns
 {Promise<Instance>}: 
the updated instance.
Use
socket.on('todo updated', function(todo){
  todoConnection.updateInstance(todo);
});
 GitHub
GitHub Twitter
Twitter