ARTConnectionStateChange
Objective-C
@interface ARTConnectionStateChange : NSObject
Swift
class ARTConnectionStateChange : NSObject, @unchecked Sendable
Contains ARTRealtimeConnectionState
change information emitted by the ARTConnection
object.
-
The new
ARTRealtimeConnectionState
.Declaration
Objective-C
@property (nonatomic, readonly) ARTRealtimeConnectionState current;
Swift
var current: ARTRealtimeConnectionState { get }
-
The previous
ARTRealtimeConnectionState
. For theARTRealtimeConnectionEvent.ARTRealtimeConnectionEventUpdate
event, this is equal to thecurrent
state.Declaration
Objective-C
@property (nonatomic, readonly) ARTRealtimeConnectionState previous;
Swift
var previous: ARTRealtimeConnectionState { get }
-
The event that triggered this
ARTRealtimeConnectionState
change.Declaration
Objective-C
@property (nonatomic, readonly) ARTRealtimeConnectionEvent event;
Swift
var event: ARTRealtimeConnectionEvent { get }
-
An
ARTErrorInfo
object containing any information relating to the transition.Declaration
Objective-C
@property (nonatomic, readonly, nullable) ARTErrorInfo *reason;
Swift
var reason: ARTErrorInfo? { get }
-
Duration in milliseconds, after which the client retries a connection where applicable.
Declaration
Objective-C
@property (nonatomic, readonly) NSTimeInterval retryIn;
Swift
var retryIn: TimeInterval { get }