Table of Contents

Class MassiveStreamReconnectOptions

Namespace
MassiveDotNet.WebSocket
Assembly
MassiveDotNet.WebSocket.dll

Backoff for reconnecting a dropped stream.

public sealed class MassiveStreamReconnectOptions
Inheritance
MassiveStreamReconnectOptions
Inherited Members

Properties

BackoffMultiplier

The factor each successive delay is multiplied by. Defaults to 2.0.

public double BackoffMultiplier { get; set; }

Property Value

double

InitialBackoff

How long to wait before the first reconnect attempt. Defaults to 500 ms.

public Duration InitialBackoff { get; set; }

Property Value

Duration

Jitter

The proportion of random jitter applied to each delay, so a fleet of clients reconnecting after the same outage does not synchronise. Defaults to 0.2, meaning plus or minus 20%.

public double Jitter { get; set; }

Property Value

double

MaxBackoff

The ceiling on the backoff delay. Defaults to 30 seconds.

public Duration MaxBackoff { get; set; }

Property Value

Duration

Methods

Validate()

Throws if the options are not in a usable state.

public void Validate()

Exceptions

InvalidOperationException

A value cannot be acted on.