Skip to content

Commit 3ede05d

Browse files
committed
Merge branch 'dev' into v2.5.0
2 parents b0e9e45 + e27a93a commit 3ede05d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

okhttps/src/main/java/com/ejlchina/okhttps/internal/WebSocketTask.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,12 @@ public WebSocketTask heatbeat(int pingSeconds, int pongSeconds) {
8888
/**
8989
* 用于兼容某些强制客户端必须以固定的时间间隔发送心跳的服务器
9090
* @since v2.5.0
91-
* @param pingSeconds 客户端心跳间隔秒数(0 表示不需要心跳)
92-
* @param pongSeconds 服务器心跳间隔秒数(0 表示不需要心跳)
9391
* @param flexiblePing Ping 的间隔是否灵活可变(默认为 true, 为 false 时客户端 Ping 的间隔固定,普通的消息不做为 Ping)
9492
* @return WebSocketTask
9593
*/
96-
public WebSocketTask heatbeat(int pingSeconds, int pongSeconds, boolean flexiblePing) {
94+
public WebSocketTask flexiblePing(boolean flexiblePing) {
9795
this.flexiblePing = flexiblePing;
98-
return heatbeat(pingSeconds, pongSeconds);
96+
return this;
9997
}
10098

10199
/**

0 commit comments

Comments
 (0)