Best is the only official SDK way to do this, usually used to read and write a OPCUA server variable
But look at this article can subscribe to server attributes, variables, events,
https://www.cnblogs.com/jiyuqi/p/9639034.html
That event is how to subscribe to and receive event notifications?
Have done to the section of the example code?