閱讀英文版本

分享方式:


ClientWebSocketOptions.KeepAliveTimeout 屬性

定義

等候對等 PONG 以回應我們傳送 PING 時所要使用的逾時:或 ZeroInfiniteTimeSpan 停用等候對等回應,並改為使用未經請求的 PONG 作為 Keep-Alive 活動訊號。

預設值為 InfiniteTimeSpan

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public TimeSpan KeepAliveTimeout { get; set; }

屬性值

屬性

適用於

產品 版本
.NET 9, 10