![]() |
Diffusion Apple API 6.11.5
Unified Client Library for iOS, tvOS and OS X / macOS
|
The Pings feature provides a client session with the ability to ping the server.
The main purpose of a ping is to test, at a very basic level, the current network conditions that exist between the client session and the server it is connected to. Each ping request will return details on the latency experienced in the form of a round-trip time value.
The Pings feature for a session can be obtained from the session's pings
property.
Instance Methods | |
(void) | - pingServerWithCompletionHandler: |
Additional Inherited Members | |
![]() | |
PTDiffusionSession * | session |
- (void) pingServerWithCompletionHandler: | (void(^)(PTDiffusionPingDetails *_Nullable details, NSError *_Nullable error)) | completionHandler |
Send a ping to the server.
completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil . The completion handler will be called asynchronously on the main dispatch queue. |
NSInvalidArgumentException | Raised if the completionHandler is `nil`. |