提交 ec0519f8 编写于 作者: 若汝棋茗

修复websocket ping报文的默认设置

上级 288a9915
...@@ -56,7 +56,7 @@ namespace TouchSocket.Http.WebSockets ...@@ -56,7 +56,7 @@ namespace TouchSocket.Http.WebSockets
/// <summary> /// <summary>
/// 当收到ping报文时,是否自动回应pong。 /// 当收到ping报文时,是否自动回应pong。
/// </summary> /// </summary>
public bool AutoPong { get; set; } = true; public bool AutoPong { get; set; }
/// <summary> /// <summary>
/// 处理WS数据的回调 /// 处理WS数据的回调
...@@ -84,10 +84,10 @@ namespace TouchSocket.Http.WebSockets ...@@ -84,10 +84,10 @@ namespace TouchSocket.Http.WebSockets
} }
/// <summary> /// <summary>
/// 当收到ping报文时,自动回应pong。 /// 当收到ping报文时,自动回应pong。
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public WebSocketServerPlugin NoAutoPong() public WebSocketServerPlugin UseAutoPong()
{ {
AutoPong = false; AutoPong = false;
return this; return this;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<ApplicationIcon>logo.ico</ApplicationIcon> <ApplicationIcon>logo.ico</ApplicationIcon>
<SignAssembly>True</SignAssembly> <SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>D:\MyStore\13_Doc\Keys\TouchSocket.snk</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile>D:\MyStore\13_Doc\Keys\TouchSocket.snk</AssemblyOriginatorKeyFile>
<Version>1.2.15</Version> <Version>1.2.16</Version>
<LangVersion>8.0</LangVersion> <LangVersion>8.0</LangVersion>
<Company>若汝棋茗</Company> <Company>若汝棋茗</Company>
<Copyright>Copyright © 2023 若汝棋茗</Copyright> <Copyright>Copyright © 2023 若汝棋茗</Copyright>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册