deepstreamNet
deepstreamNet copied to clipboard
Subscribing to record updates/changes
I have noticed that there is no subscribe method for record updates in the DeepStreamRecord class. I want to know if there is another way to subscribe to a change on a record.
DeepStreamRecord class implements INotifyPropertyChanged interface. So you can subscribe on the PropertyChanged event to get notified about updates/changes in a record.
With this event you get notified only when there is a chagne in a record in client side. How do I know if the record changes from the server side? You can subscribe to events but not for recrods.
If you get the record via GetRecordAsync then the PropertyChanged event is connected in the background with the server and will be triggered on server side changes of the record
I tested it and it looks like it works. Thanks.
Originally I wanted an event that notifies when changes are made to the record, and provides the record itself. @schulz3000 take a look at the PR, please :)