destroyInstance
Programatically indicate a new instance has been destroyed.
connection.destroyInstance(props)
Gets or creates an instance from props
and uses
it to call destroyedData
correctly.
Parameters
- props
{Object}
:The properties of the destroyed instance.
Returns
{Promise<Instance>}
:
A promise with the destroyed instance.
Use
socket.on('todo destroyed', function(todo){
todoConnection.destroyInstance(todo);
});