Companion
Functions
Link copied to clipboard
fun constructDittoFallible(dependencies: DittoDependencies, identity: DittoIdentity = OfflinePlayground(dependencies)): Ditto
Content copied to clipboard
Constructs a Ditto instance in a new way that prevents a crash if the rust core has a problem obtaining a lock on the persistence directory. Should an issue occur, this method instead throws a DittoError.
Link copied to clipboard
fun setPriorityForQueryOverlapGroup( priority: DittoConnectionPriority, queryOverlapGroup: UByte, ditto: DittoBase)
Content copied to clipboard
Configure the priority with which Ditto should connect to any peers in the given Query Overlap Group. If the priority is set to high, an end-to-end encrypted multihop connection will be established wherever it is not possible to establish a direct connection.
Link copied to clipboard
Set a Query Overlap Group for the local Ditto instance. Query Overlap Groups are an optional feature that can be used to group peers based on their anticipated queries, and set relative connection priorities amongst these groups.