src/main/java/org/java_websocket/client/WebSocketClient.java
@Override
	public final void onWebsocketClose( WebSocket conn, int code, String reason, boolean remote ) {
		stopConnectionLostTimer();
		if( writeThread != null )
			writeThread.interrupt();
		onClose( code, reason, remote );
		connectLatch.countDown();
		closeLatch.countDown();
	}
@Override
	public final void onWebsocketClose( WebSocket conn, int code, String reason, boolean remote ) {
		stopConnectionLostTimer();
		if( writeThread != null )
			writeThread.interrupt();
		onClose( code, reason, remote );
		connectLatch.countDown();
		closeLatch.countDown();
	}
@ Override public final void onWebsocketClose ( WebSocket conn , int code , String reason , boolean remote ) { stopConnectionLostTimer ( ) ; if ( writeThread != null ) writeThread . interrupt ( ) ; onClose ( code , reason , remote ) ; connectLatch . countDown ( ) ; closeLatch . countDown ( ) ; }
Calls subclass' implementation of <var>onClose</var>.
Calls subclass implementation of <var > onClose< / var > .