Which is the best way of get streaming of events and alarms with a backend in python?

I’ve a backend application made with python and I wanna know which is the best way of get events on live using python, maybe a websocket or similar

Unfortunately, there is no such a sample in python.

Instead, there is a sample called Alarm List, which is written in C# but its logic might be helpful to see.

https://doc.developer.milestonesys.com/html/index.html?base=samples/protocolsamples/alarmlist/readme.html&tree=tree_3.html