C# Класс Examples.ClientReconnection

These examples show how to configure and enable the reconnection feature of the API. Every method represents a different selfcontained example.
Показать файл Открыть проект

Открытые методы

Метод Описание
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