Our client wanted an endpoint exposed. We exposed it like this
For pop-up we’re using, frappe.publish_realtime()
frappe.publish_realtime()