I'm not sure this is exactly how the parameters should be named. The important fact is that the first argument is actually an array of [key, value]
….clock isn't defined.
if there was a delay in receiving the handshake from the client, and an update occurs before it's received the handshake. It's possible that it emits a message before it's sent anything... (this can happen if the vector clock is very large and splits a packet).