C# 클래스 Examples.ClientReconnection

These examples show how to configure and enable the reconnection feature of the API. Every method represents a different selfcontained example.
파일 보기 프로젝트 열기: pushtechnology/diffusion-examples

공개 메소드들

메소드 설명
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.

메소드 상세

DisableReconnection() 공개 메소드

Disables the reconnection feature.
public DisableReconnection ( ) : void
리턴 void

ObserveReconnection() 공개 메소드

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

SetCustomReconnectionStrategy() 공개 메소드

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

SetReconnectionTimeout() 공개 메소드

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
리턴 void