C# Class Examples.ClientReconnection

These examples show how to configure and enable the reconnection feature of the API. Every method represents a different selfcontained example.
Afficher le fichier Open project: pushtechnology/diffusion-examples

Méthodes publiques

Méthode Description
DisableReconnection ( ) : void

Disables the reconnection feature.

ObserveReconnection ( ) : void

Reconnection can be observed via session state changes within the SessionStateChangeHandler.

SetCustomReconnectionStrategy ( ) : void

This applies the custom reconnection strategy.

SetReconnectionTimeout ( ) : void

Sets the reconnection timeout that represents the duration in which the client is trying to reconnect to the server. If we are not reconnected after the timeout, the client will close the session.

Method Details

DisableReconnection() public méthode

Disables the reconnection feature.
public DisableReconnection ( ) : void
Résultat void

ObserveReconnection() public méthode

Reconnection can be observed via session state changes within the SessionStateChangeHandler.
public ObserveReconnection ( ) : void
Résultat void

SetCustomReconnectionStrategy() public méthode

This applies the custom reconnection strategy.
public SetCustomReconnectionStrategy ( ) : void
Résultat void

SetReconnectionTimeout() public méthode

Sets the reconnection timeout that represents the duration in which the client is trying to reconnect to the server. If we are not reconnected after the timeout, the client will close the session.
public SetReconnectionTimeout ( ) : void
Résultat void