|
PresenceObserver | observe (PresenceCallback presence_cb) |
| This will run the provided callback when peers are updated. More...
|
|
PresenceGraph | exec () |
| Return an immediate representation of known peers. More...
|
|
The Presence allow the user to monitor peers in the mesh
◆ exec()
Return an immediate representation of known peers.
- Returns
- PresenceGraph graph of known peers
◆ observe()
PresenceObserver ditto::Presence::observe |
( |
PresenceCallback |
presence_cb | ) |
|
This will run the provided callback when peers are updated.
- Parameters
-
presence_cb | callback that will be run when the peers are updated |
- Returns
- PresenceObserver handle to drop to stop observing peers;