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

Method onclose

src/main/java/io/socket/client/Socket.java:278–286  ·  view source on GitHub ↗
(String reason)

Source from the content-addressed store, hash-verified

276 }
277
278 private void onclose(String reason) {
279 if (logger.isLoggable(Level.FINE)) {
280 logger.fine(String.format("close (%s)", reason));
281 }
282 this.connected = false;
283 this.id = null;
284 super.emit(EVENT_DISCONNECT, reason);
285 this.clearAcks();
286 }
287
288 /**
289 * Clears the acknowledgement handlers upon disconnection, since the client will never receive an acknowledgement from

Callers 3

ondisconnectMethod · 0.95
callMethod · 0.45
runMethod · 0.45

Calls 2

clearAcksMethod · 0.95
emitMethod · 0.80

Tested by

no test coverage detected