RLMSyncConnectionState

Objective-C

enum RLMSyncConnectionState {}

Swift

enum RLMSyncConnectionState : UInt

The current state of a sync session’s connection. Sessions which are not in the Active state will always be Disconnected.

  • The sync session is not connected to the server, and is not attempting to connect, either because the session is inactive or because it is waiting to retry after a failed connection.

    Declaration

    Objective-C

    RLMSyncConnectionStateDisconnected

    Swift

    case disconnected = 0
  • The sync session is attempting to connect to MongoDB Realm.

    Declaration

    Objective-C

    RLMSyncConnectionStateConnecting

    Swift

    case connecting = 1
  • The sync session is currently connected to MongoDB Realm.

    Declaration

    Objective-C

    RLMSyncConnectionStateConnected

    Swift

    case connected = 2