Socket i/o events not working in server

In my server frappe.enqueue() is running but the publish progress and publish realtime don’t work at all?
They work in local just fine.