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