Why do you embed `sendOutOfDateMsg` inside `eventSourceHelper`?  Why not just have it be a function?  Also, your `sendOutOfDateMessage` function is poorly named, since it doesn't do that, but actually generates a function for doing this action.  I also think this can live in the `Sync` object described above.