- Declaration
public static IDisposable BindSpaceUsers(this CavrnusSpaceConnection spaceConn, Action<CavrnusUser> userAdded, Action<CavrnusUser> userRemoved)
- Description
Throws events whenever CavrnusUsers(TODO:LINK) enter/exit the given space.
Note that userAdded
will be triggered immediately for every user that is already present.
This is the best way to maintain a list of users in, say, a UI panel. If you just want a snapshot of the current users for, say, debugging, consider calling GetCurrentSpaceUsers.
- Sample
TODO: WRITE