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.
显示文件 Open project: pushtechnology/diffusion-examples

Public Methods

Method 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 method

Disables the reconnection feature.
public DisableReconnection ( ) : void
return void

ObserveReconnection() public method

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

SetCustomReconnectionStrategy() public method

This applies the custom reconnection strategy.
public SetCustomReconnectionStrategy ( ) : void
return void

SetReconnectionTimeout() public method

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
return void