DittoPresenceGraph
public struct DittoPresenceGraph
extension DittoPresenceGraph: Equatable
extension DittoPresenceGraph: Hashable
extension DittoPresenceGraph: Codable
Represents the Ditto mesh network of peers and their connections between
each other. The localPeer
is the entry point, all others are remote peers
known by the local peer (either directly or via other remote peers).
-
Returns the local peer (usually the peer that is represented by the currently running Ditto instance). The
localPeer
is the entry point, all others are remote peers known by the local peer (either directly or via other remote peers).Declaration
Swift
public var localPeer: DittoPeer
-
Returns a dictionary with all connections found in this graph by their IDs.
Declaration
Swift
public func allConnectionsByID() -> Dictionary<String, DittoConnection>