Hi,
By default, any message is non-persistent. To change it to persistent, we must send deliveryMode: 2 during the message publication. However, it appears that there is no way to pass deliveryMode to publish a message, as seen here:
We will open a new pull request for it.