Self-hosting meet and using iFrame, how to access/manage web events within iFrame?

I need to:

access/handle the video call’s web event within the iFrame.
Anyone knows how?
What do I need to implement? websockets?

Thank you in advanced for your time and Help.