clear array of published messages, allow easy search of published messages array