Share via


WebSocketAcceptContext.KeepAliveTimeout Property

Definition

The time to wait for a Pong frame response after sending a Ping frame. If the time is exceeded the websocket will be aborted.

public TimeSpan? KeepAliveTimeout { get; set; }
member this.KeepAliveTimeout : Nullable<TimeSpan> with get, set
Public Property KeepAliveTimeout As Nullable(Of TimeSpan)

Property Value

Exceptions

Remarks

null means use the value from WebSocketOptions.KeepAliveTimeout. InfiniteTimeSpan and Zero are valid values and will disable the timeout.

Applies to