Diffusion Apple API
5.9.24
Unified Client Library for iOS, OS X and tvOS
|
A session represents a single connection to a single Diffusion server.
The Quick Start guide provides basic instructions on how to get connected to a Diffusion server.
Class Methods | |
(void) | + openWithURL:configuration:completionHandler: |
(void) | + openWithURL:completionHandler: |
Instance Methods | |
(void) | - close |
- (void) close |
Close the session. Once closed a session cannot be restarted.
+ (void) openWithURL: | (NSURL *) | url | |
completionHandler: | (PTDiffusionSession *_Nullable) | session | |
(NSError *_Nullable error) | completionHandler | ||
Starts asynchronously connecting to a Diffusion server using the default session configuration.
url | The location of the server to connect to. Encapsulates host, port and protocol to use. Must be absolute. |
completionHandler | The completion handler to call on connection success or failure. The completion handler will be called from the main dispatch queue and will only be called once. |
+ (void) openWithURL: | (NSURL *) | url | |
configuration: | (PTDiffusionSessionConfiguration *) | configuration | |
completionHandler: | (PTDiffusionSession *_Nullable) | session | |
(NSError *_Nullable error) | completionHandler | ||
Starts asynchronously connecting to a Diffusion server using the given session configuration.
url | The location of the server to connect to. Encapsulates host, port and protocol to use. Must be absolute. |
configuration | The configuration options to connect with. |
completionHandler | The completion handler to call on connection success or failure. The completion handler will be called from the main dispatch queue and will only be called once. |
|
readnonatomiccopy |
The configuration used to open the session.
|
readnonatomicassign |
The Messaging feature provides messaging capabilities.
|
readnonatomicassign |
The Pings feature provides a client session with the ability to test the roundtrip time associated with sending a request to the server and receiving the associated response.
|
readnonatomicassign |
The Security feature provides a client session with the ability to change the associated principal.
|
readnonatomicassign |
The unique identifier for the session as assigned by the server it connects to.
This property is Key-Value Observable with changes being notified on the main dispatch queue.
|
readnonatomicassign |
The current state of the session.
This property is Key-Value Observable with changes being notified on the main dispatch queue. KVO notifications are sent before the invocation of any callback handler blocks.
|
readnonatomicassign |
The Topic Control features provides the capability to manage topics.
|
readnonatomicassign |
The Topics feature provides the capability to receive streamed topic updates and/or fetch the state of topics.
|
readnonatomicassign |
The Topic Update Control feature provides the capability to update topics.