Skip to content

Commit e5ce217

Browse files
committed
Include reason for dc due to lost connection detection
1 parent 2047167 commit e5ce217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/java_websocket/AbstractWebSocket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void run() {
147147
if( webSocketImpl.getLastPong() < current ) {
148148
if (WebSocketImpl.DEBUG)
149149
System.out.println("Closing connection due to no pong received: " + conn.toString());
150-
webSocketImpl.closeConnection( CloseFrame.ABNORMAL_CLOSE , false );
150+
webSocketImpl.closeConnection( CloseFrame.ABNORMAL_CLOSE , "The connection was closed because the other endpoint did not respond with a pong in time. For more information check: https://github.com/TooTallNate/Java-WebSocket/wiki/Lost-connection-detection");
151151
} else {
152152
if (webSocketImpl.isOpen()) {
153153
webSocketImpl.sendPing();

0 commit comments

Comments
 (0)