DITConnect

@interface DITConnect : NSObject <NSCopying, NSMutableCopying> {
  NSSet<NSString *> *_tcpServers;
  NSSet<NSString *> *_websocketURLs;
}

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.

  • Undocumented

    Declaration

    Objective-C

    NSSet<NSString *> *_tcpServers
  • Undocumented

    Declaration

    Objective-C

    NSSet<NSString *> *_websocketURLs
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSSet<NSString *> *tcpServers
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSSet<NSString *> *websocketURLs
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithDITConnect:(DITConnect *)connect;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithTcpServers:(NSSet<NSString *> *)tcpServers
                         websocketURLs:(NSSet<NSString *> *)websocketUrls NS_DESIGNATED_INITIALIZER;