Publish Real Time React

@frappe.whitelist(allow_guest=True)
def ask_ai(question, email, quiz_name=None, description=None, timer=None,)

frappe.publish_realtime('progress', {'progress': 50})

frappe.publish_realtime(‘progress’, {‘progress’: 75})
frappe.publish_realtime(‘progress’, {‘progress’: 100})

In front end i am using react in frappe.
how to get this data from there. Code please

@buildwithhussain