Share via


WebSocketOptions.KeepAliveInterval Property

Definition

The interval to send keep-alive frames. This is a heart-beat that keeps the connection alive. The default is two minutes.

public:
 property TimeSpan KeepAliveInterval { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan KeepAliveInterval { get; set; }
member this.KeepAliveInterval : TimeSpan with get, set
Public Property KeepAliveInterval As TimeSpan

Property Value

Remarks

May be either a Ping or a Pong frame, depending on if KeepAliveTimeout is set.

Applies to