MCPcopy
hub / github.com/socketio/socket.io / cleanup

Method cleanup

packages/socket.io-client/lib/manager.ts:518–525  ·  packages/socket.io-client/lib/manager.ts::Manager.cleanup

* Clean up transport subscriptions and packet buffer. * * @private

()

Source from the content-addressed store, hash-verified

516 * @private
517 */
518 private cleanup(): void {
519 debug(class="st">"cleanup");
520
521 this.subs.forEach((subDestroy) => subDestroy());
522 this.subs.length = 0;
523
524 this.decoder.destroy();
525 }
526
527 /**
528 * Close the current socket.

Callers 4

onErrorMethod · 0.95
onopenMethod · 0.95
oncloseMethod · 0.95
index.tsFile · 0.45

Calls 2

debugFunction · 0.85
destroyMethod · 0.45

Tested by

no test coverage detected