DittoConnect

public struct DittoConnect : Equatable
extension DittoConnect: Codable

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.

  • A set of TCP servers specified as strings of the form “host:port”.

    Declaration

    Swift

    public var tcpServers: Set<String>
  • A set of WebSocket URLs specified as strings of the form “wss://some.example.com”.

    Declaration

    Swift

    public var webSocketURLs: Set<String>
  • The amount of time (in seconds) to wait until trying to reconnect if a connection fails.

    Declaration

    Swift

    public var retryInterval: TimeInterval
  • A set of WebSocket URLs specified as strings of the form “wss://some.example.com”.

    Declaration

    Swift

    @available(*, deprecated, message: "Please use `webSocketURLs` instead.")
    public var websocketURLs: Set<String> { get set }
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws