(Object reason)
| 425 | } |
| 426 | |
| 427 | void onClose(Object reason) { |
| 428 | if (this.verbose) { |
| 429 | System.out.println(getFormattedDate() + "WsClient closed: " + this.url + " reason: " + reason); |
| 430 | } |
| 431 | this.isConnected = false; |
| 432 | this.startedConnecting.set(false); |
| 433 | this.error = false; |
| 434 | if (this.onCloseCallback != null) { |
| 435 | this.onCloseCallback.accept(this, reason); |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | void onError(Object err) { |
| 440 | if (this.verbose) { |
no test coverage detected