As of
hook.io 0.8.10 you can listen for and handle a 'hook::disconnected' event.
hook.on('hook::disconnected', function(data) {
console.log('hook disconnected ' +
data.name + ' do something!');
});
When the hook is disconnected, you could keep an array of changes and then push the changes out when the other server reconnects.
A different strategy would involve keeping a counter on the master node and pushing the sequence number out with every update. If a client node detects a gap in the sequence, then it could request a specific update by sequence number from the master server. Simple methods like this can exist for multi-master environments also, just also post the node server name or other unique identifier as well as the sequence number.
Let us know what you end up doing.
<>Darin