Skip to content

Commit 0846b28

Browse files
Update WSPingListener.java (#195)
Fix issue #155
1 parent e214ddf commit 0846b28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdk/src/main/java/com/vk/api/sdk/streaming/clients/websocket/WSPingListener.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public void onClose(WebSocket websocket, int code, String reason) {
2525
LOG.info("Close websocket" + websocket);
2626
}
2727

28+
@Override
29+
public void onPingFrame(byte[] payload){
30+
webSocket.sendPongFrame(payload);
31+
}
32+
2833
@Override
2934
public void onError(Throwable t) {
3035
LOG.info("Websocket error " + t);

0 commit comments

Comments
 (0)