Page 1 of 1
ventuz.eventson with Remoting4
Posted: 25 Apr 2020, 22:47
by Etienne
Hello,
Is there a Remoting4 equivalent to ventuz.eventson? I used to read scene events from the CLI TCP socket and was interested in doing the same with Remoting4.
Thanks for your help,
Etienne Laneville
Re: ventuz.eventson with Remoting4
Posted: 28 Apr 2020, 11:09
by Karol
Hi Etienne!
You do not need to explicitly enable event notification in Remoting4.
But you need to register to receive property change or event notifications.
For this you use the 'DataItemChanged' event on the Cluster class.
Best Regards
Karol
Re: ventuz.eventson with Remoting4
Posted: 11 May 2020, 05:04
by Etienne
Thanks Karol, that's working, I am getting the same scene event back through my Cluster's DataItemChanged event.
As far as matching the IID from the DataItemChangedEventArgs with my scene, it's giving me {0000}, the pipe ID. I'd expect that to be the IID of the scene where the change occured?
Re: ventuz.eventson with Remoting4
Posted: 11 May 2020, 09:42
by Karol
Hi Etienne,
you are right. DataItemChangedEventArgs.IID must be the one of the scene where the event was triggered.
But this is definitely working correctly. I just tested to be sure.
Are you sure that this is the right event that you are awaiting?
I would recommend to double-check with our Remoting4 demo code.
Best Regards
Karol
Re: ventuz.eventson with Remoting4
Posted: 11 May 2020, 17:53
by Etienne
Hi Karol,
I am actually seeing two events, the first one has a correct IID and the next has the 0000 IID I mentioned:
/LBWP/00//.GameFlow.AutoRetract.Event
/0000/00//.GameFlow.AutoRetract.Event
Other updates made to properties in my Scene Data only show up once and without the path in front.