How to start a peer service?
I'm trying to run a custom peer service but I don't know how to start it.
- Is there any way to register it somewhere for it being started automatically? (like group services that are invoked when the peer joins the group)
- Or, do I have to invoke it by calling init method followed by startApp one?
I've gone through Service and customGroupService tutorials but I haven't found the answer there, although they have been really useful solving other problems.
Description of my custom service:
- Implements Service interface.
- Is announced in the peer's PeerAdv Svc field.
Any help would be really appreciated.
Thanks in advance.