Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnConnect, onDisconnect inside component? #26

Open
tdalianis opened this issue Nov 30, 2016 · 1 comment
Open

OnConnect, onDisconnect inside component? #26

tdalianis opened this issue Nov 30, 2016 · 1 comment

Comments

@tdalianis
Copy link

Hi,

Is there a way to "listen" for the registration or unregistration of nodes inside a kevoree component?
I know that the Group can handle these events but it is possible to propagate this somehow and be able to handle them inside a component?

My requirement is to be able to update internal structure when a new kevoree node is added or an old node is deleted from the "kevoree network" and this functionality would simplify a lot things for me.

Thank you

@maxleiko
Copy link
Member

Natively there is no "easy" way to do this. You will have to listen to model events and try to find out if something changed by reading the model. You can have a look at the WSGroup source code in order to see how to listen to model event in Java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants