Partager via


IRetryPolicy interface

An abstraction that controls when the client attempts to reconnect and how many times it does so.

Methods

nextRetryDelayInMilliseconds(RetryContext)

Called after the transport loses the connection.

Method Details

nextRetryDelayInMilliseconds(RetryContext)

Called after the transport loses the connection.

function nextRetryDelayInMilliseconds(retryContext: RetryContext): number | null

Parameters

retryContext
RetryContext

Details related to the retry event to help determine how long to wait for the next retry.

Returns

number | null

The amount of time in milliseconds to wait before the next retry. null tells the client to stop retrying.