ClientWebSocketOptions.KeepAliveTimeout 属性

定义

等待对等方 PONG 以响应我们发送 PING 时使用的超时;或 ZeroInfiniteTimeSpan 禁用等待对等方响应,并改用未经请求的 PONG 作为 Keep-Alive 检测信号。

默认值为 InfiniteTimeSpan

public:
 property TimeSpan KeepAliveTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public TimeSpan KeepAliveTimeout { get; set; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.KeepAliveTimeout : TimeSpan with get, set
Public Property KeepAliveTimeout As TimeSpan

属性值

属性

适用于