stianeikeland/node-etcd — pull request #14 by mren (2014-01-06 15:27:27+00:00)
Title: Using correct Index in Watcher

`Watcher.coffee` used the `x-etcd-index` header to find the next changeset in etcd.
`x-etcd-index` is used to reference to the [current/latest index of this key](https://github.com/coreos/etcd/blob/master/Documentation/api.md#response-headers). It is possible that other changes are between the index of the key currently fetched and the index of the latest value of this key. This could lead to missing events.

Therefore its better to use the `modifiedIndex` of the node.