ARTRestProtocol
Objective-C
@protocol ARTRestProtocol <ARTRestInstanceMethodsProtocol>
Swift
protocol ARTRestProtocol : ARTRestInstanceMethodsProtocol
The protocol upon which the top level object ARTRest is implemented.
-
Construct an
ARTRestobject using an AblyARTClientOptionsobject.Declaration
Objective-C
- (nonnull instancetype)initWithOptions:(nonnull ARTClientOptions *)options;Swift
init(options: ARTClientOptions)Parameters
optionsA
ARTClientOptionsobject to configure the client connection to Ably. -
Constructs a
ARTRestobject using an Ably API key.Declaration
Objective-C
- (nonnull instancetype)initWithKey:(nonnull NSString *)key;Swift
init(key: String)Parameters
keyThe Ably API key used to validate the client.
-
Constructs a
ARTRestobject using an Ably token string.Declaration
Objective-C
- (nonnull instancetype)initWithToken:(nonnull NSString *)token;Swift
init(token: String)Parameters
tokenThe Ably token string used to validate the client.