(String reason)
| 462 | } |
| 463 | |
| 464 | private void onclose(String reason) { |
| 465 | logger.fine("onclose"); |
| 466 | this.cleanup(); |
| 467 | this.backoff.reset(); |
| 468 | this.readyState = ReadyState.CLOSED; |
| 469 | this.emit(EVENT_CLOSE, reason); |
| 470 | |
| 471 | if (this._reconnection && !this.skipReconnect) { |
| 472 | this.reconnect(); |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | private void reconnect() { |
| 477 | if (this.reconnecting || this.skipReconnect) return; |