MultipeerReplicatorConfiguration
public struct MultipeerReplicatorConfiguration : CBLConvertible
Bluetooth Low Energy (BLE).
Configuration for creating a MultipeerReplicator
-
Identifier for discovering and connecting peers.
Declaration
Swift
public let peerGroupID: String -
Peer identity. The identity’s certificate must be both server and client certificate.
Declaration
Swift
public let identity: TLSIdentity -
Peer authenticator for verifying the connecting peer’s certificate.
Declaration
Swift
public let authenticator: MultipeerAuthenticator -
A list of collection configurations for collections to replicate.
Declaration
Swift
public let collections: [MultipeerCollectionConfiguration] -
Transport options for peer discovery and replication. The default is Wi-Fi only. When multiple transports are specified, the replicator automatically selects and switches between available transports, preferring Wi-Fi over Bluetooth.
Declaration
Swift
public var transports: Set<MultipeerTransport> -
Initializes the configuration with a peer group identifier, identity, authenticator, and collections.
Declaration
Swift
public init(peerGroupID: String, identity: TLSIdentity, authenticator: MultipeerAuthenticator, collections: [MultipeerCollectionConfiguration])Parameters
peerGroupIDThe group identifier used for discovering and connecting peers.
identityThe peer’s TLS identity. The certificate must be valid for both client and server authentication.
authenticatorAuthenticator for verifying the connecting peer’s certificate.
collectionsA list of collection configurations for the collections to replicate.
MultipeerReplicatorConfiguration Structure Reference