How to fetch openfire archive messages in web?

I have connnected to the openfire with xmmp.js library on angular. I am not able to find options to get MAM/Archives using this library. Also, there is no documentation on openfire as well.

Can anyone guide me getting archives?

When you have installed and configured the Openfire Monitoring Service plugin, then MAM archives will be created.

Clients can interact with those archives following the protocol that is described in XEP-0313: Message Archive Management. How that is done with the library that you’re using is a question for the maintainers of that library.