Skip to content

Commit 8a23263

Browse files
authored
Merge pull request TooTallNate#671 from marci4/master
Include reason for dc due to lost connection detection
2 parents 02607c2 + e5ce217 commit 8a23263

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)