Other Structures
The following structures are available globally.
-
A directory or file in the Ditto working directory. Directories can be traversed by accessing the
See morechildItemsproperty. Files won’t have any children.Declaration
Swift
public struct DiskUsageItemextension DiskUsageItem: Equatableextension DiskUsageItem: Hashableextension DiskUsageItem: CustomStringConvertible -
P2P BluetoothLE configuration. Part of
See moreDittoPeerToPeer.Declaration
Swift
public struct DittoBluetoothLEConfig : Codable, Equatable -
P2P LAN configuration to configure peer discovery via mDNS or multicast. Part of
See moreDittoPeerToPeer.Declaration
Swift
public struct DittoLANConfig : Codable, Equatable -
P2P AWDL configuration. Part of
See moreDittoPeerToPeer.Declaration
Swift
public struct DittoAWDLConfig : Codable, Equatable -
Configuration of peer-to-peer transports, which are able to discover and connect to peers on their own.
For more information refer to the documentation for
See moreDittoTransportConfig.Declaration
Swift
public struct DittoPeerToPeer : Codable, Equatable -
Specific servers that Ditto should attempt to connect to. TCP servers are specified as “host:port”. WebSocket URLs take the form “wss://hydra.ditto.live”. Please refer to the documentation on Ditto’s website for configuring cloud or client/server scenarios.
See moreDeclaration
Swift
public struct DittoConnect : Equatableextension DittoConnect: Codable -
TCP listening configuration.
See moreDeclaration
Swift
public struct DittoTCPListenConfig : Codable, Equatable -
HTTP & WebSocket listening configuration.
See moreDeclaration
Swift
public struct DittoHTTPListenConfig : Codable, Equatable -
Configure this device as a Ditto server. Disabled by default.
This is advanced usage that is not needed in most situations. Please refer to the documentation on Ditto’s website for scenarios and example configurations.
See moreDeclaration
Swift
public struct DittoListen : Codable, Equatable -
Settings not associated with any specific type of transport.
See moreDeclaration
Swift
public struct DittoGlobalConfig : Codable, Equatable -
Provides information about the changes that have occurred in relation to a live query for a given update event.
This type is returned in the
See moreupdatecase of theDittoExperimentalChangeListenerEventenum.Declaration
Swift
public struct DittoExperimentalChangeListenerUpdate -
Represents a connection between two peers on the Ditto mesh network.
See moreDeclaration
Swift
public struct DittoConnectionextension DittoConnection: Identifiableextension DittoConnection: Equatableextension DittoConnection: Hashableextension DittoConnection: Codable -
Undocumented
See moreDeclaration
Swift
public struct DittoPeerextension DittoPeer: Equatableextension DittoPeer: Hashableextension DittoPeer: Codable -
Represents the Ditto mesh network of peers and their connections between each other. The
See morelocalPeeris the entry point, all others are remote peers known by the local peer (either directly or via other remote peers).Declaration
Swift
public struct DittoPresenceGraphextension DittoPresenceGraph: Equatableextension DittoPresenceGraph: Hashableextension DittoPresenceGraph: Codable
Other Structures Reference