点击或拖拽改变大小

WebSocketServerKeepAlivePeriod 属性

设置的参数,最小单位为1s,当超过设置的时间间隔必须回复PONG报文,否则服务器认定为掉线。默认120秒
Set the minimum unit of the parameter is 1s. When the set time interval is exceeded, the PONG packet must be returned, otherwise the server considers it to be offline. 120 seconds by default

命名空间:  HslCommunication.WebSocket
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public TimeSpan KeepAlivePeriod { get; set; }

属性值

类型:TimeSpan
备注
保持连接(Keep Alive)是一个以秒为单位的时间间隔,它是指客户端返回一个PONG报文到下一次返回PONG报文的时候, 两者之间允许空闲的最大时间间隔。客户端负责保证控制报文发送的时间间隔不超过保持连接的值。
参见