MCPcopy Index your code
hub / github.com/socketio/socket.io-client-java / onclose

Method onclose

src/main/java/io/socket/client/Manager.java:464–474  ·  view source on GitHub ↗
(String reason)

Source from the content-addressed store, hash-verified

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;

Callers 1

callMethod · 0.45

Calls 4

cleanupMethod · 0.95
reconnectMethod · 0.95
resetMethod · 0.80
emitMethod · 0.80

Tested by

no test coverage detected