We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf25f98 commit 59429baCopy full SHA for 59429ba
1 file changed
src/main/java/cn/jja8/newbinggogo/NewBingGoGoClientWebSocket.java
@@ -4,6 +4,7 @@
4
import org.java_websocket.WebSocket;
5
import org.java_websocket.client.WebSocketClient;
6
import org.java_websocket.framing.Framedata;
7
+import org.java_websocket.framing.PingFrame;
8
import org.java_websocket.handshake.ServerHandshake;
9
10
import java.io.IOException;
@@ -27,13 +28,13 @@ public void onOpen(ServerHandshake handshakedata) {
27
28
}
29
30
@Override
- public void onWebsocketPong(WebSocket conn, Framedata f) {
31
+ public void onWebsocketPing(WebSocket conn, Framedata f) {
32
+ super.onWebsocketPing(conn,f);
33
try {
- newBingGoGoServerWebSocket.ping(new byte[1]);
34
+ newBingGoGoServerWebSocket.ping(new byte[0]);
35
} catch (IOException e) {
36
close();
37
-
38
39
40
0 commit comments