feat(接口测试): 调试报告websocket连接增加保持连接机制

--story=1005010 --user=赵勇 调试报告websocket连接增加保持连接机制 https://www.tapd.cn/55049933/s/1104896
This commit is contained in:
fit2-zhao 2022-02-17 11:46:26 +08:00 committed by fit2-zhao
parent f72862566a
commit 0c57cad82c
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ public class WebSocketUtils {
if (session == null) {
return;
}
// 设置永不超时一直保持会话连接
session.setMaxIdleTimeout(-1);
RemoteEndpoint.Async async = session.getAsyncRemote();
if (async == null) {
return;