code: def handle(client_message, handle_event_entry=None, to_object=None):
      
      message_type = client_message.get_message_type()
      if message_type == EVENT_ENTRY and handle_event_entry is not None:
          key = None
          if not client_message.read_bool():
              key = client_message.read_data()
          value = None
          if not client_message.read_bool():
              value = client_message.read_data()
          old_value = None
          if not client_message.read_bool():
              old_value = client_message.read_data()
          merging_value = None
          if not client_message.read_bool():
              merging_value = client_message.read_data()
          event_type = client_message.read_int()
          uuid = client_message.read_str()
          number_of_affected_entries = client_message.read_int()
          handle_event_entry(key=key, value=value, old_value=old_value, merging_value=merging_value, event_type=event_type, uuid=uuid, number_of_affected_entries=number_of_affected_entries)
docs: Event handler