Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
<PTDiffusionSessionReconnectionStrategy> Protocol Reference

The session reconnection strategy protocol defines the behaviour for a session when recovering a failed connection. More...

#include <PTDiffusionSessionReconnectionStrategy.h>

Inheritance diagram for <PTDiffusionSessionReconnectionStrategy>:
PTDiffusionSessionDelayedReconnectionStrategy PTDiffusionSessionImmediateAbortReconnectionStrategy

Instance Methods

(void) - diffusionSession:wishesToReconnectWithAttempt:

Detailed Description

The session reconnection strategy protocol defines the behaviour for a session when recovering a failed connection.

See also
PTDiffusionSessionConfiguration
Since
5.6

Method Documentation

◆ diffusionSession:wishesToReconnectWithAttempt:

- (void) diffusionSession: (PTDiffusionSession *) session
wishesToReconnectWithAttempt: (PTDiffusionSessionReconnectionAttempt *) attempt 

The connection has failed when connecting or connected and the session is now in a recovering state.

Parameters
sessionThe session which is recovering.
attemptThe reconnection attempt object providing start and abort methods to be used by the implementing strategy immediately or at some point in the future to instruct the session how to proceed.
Since
5.6