function _filterMessage(msgObj, state) {
  if (msgObj.senderUuid === state.uuid) return false; // not send by own
  if (state.emittedMessagesIds.has(msgObj.token)) return false; // not already emitted
  if (!state.messagesCallback) return false; // no listener
  if (msgObj.time < state.messagesCallbackTime) return false; // not older than onMessageCallback
  if (msgObj.time < state.time) return false; // msgObj is older than channel

  state.emittedMessagesIds.add(msgObj.token);
  return true;
}
Used to ensure we do not write too many files at once
which could throw an error.
Must always be smaller than options.node.maxParallelWrites