Ditto

constructor(dependencies: DittoDependencies, identity: DittoIdentity = OfflinePlayground(dependencies))

Deprecated

Use Ditto.open(config) or Ditto.openSync(config) instead. Identity-based construction will be removed in SDK 5.0. See https://docs.ditto.live for migration guide.

Replace with

Ditto.openSync(config)

Public constructor using legacy dependency injection pattern.

Phased out in 4.x — replaced by Ditto.open and Ditto.openSync factory methods. This API will be replaced by the new factory methods in v5.