SpaceMemberMonitor

The SpaceMemberMonitor example creates a SpaceMemberListener for a space. The listener callback is invoked whenever a member joins, leaves, or changes their role in the space (e.g. leech vs seeder). The listener callback displays information about the event which caused it to be invoked.

SpaceMemberMonitor is only interested in events that affect the members of an existing space. It does not create the space itself.

If SpaceMemberMonitor connects to a metaspace with existing members, it displays information about those members when it first starts up, and then displays information about members as they connect to or leave the space.