MCPcopy
hub / github.com/socketio/socket.io-client-java / destroy

Method destroy

src/main/java/io/socket/client/Socket.java:444–454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

442 }
443
444 private void destroy() {
445 if (this.subs != null) {
446 // clean subscriptions to avoid reconnection
447 for (On.Handle sub : this.subs) {
448 sub.destroy();
449 }
450 this.subs = null;
451 }
452
453 this.io.destroy();
454 }
455
456 /**
457 * Disconnects the socket.

Callers 2

onpacketMethod · 0.95
ondisconnectMethod · 0.95

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected