DittoRemotePeer
public struct DittoRemotePeer : Codable
A summary snapshot of the types of connections currently active to a remote Ditto peer.
-
The device name of the remote peer.
Declaration
Swift
public let deviceName: String
-
The connections that are currently active with the remote peer.
Declaration
Swift
public let connections: [String]
-
Initializes a
DittoRemotePeer
with a device name and connections. There should be no reason to manually initialize aDittoRemotePeer
. Instead, you should use theDittoKit.observePeers()
function to receive updates about which peers DittoKit has observed in the nearby mesh network.Declaration
Swift
public init(deviceName: String, connections: [String])