MCPcopy Create free account
hub / github.com/socketio/socket.io / _cleanup

Method _cleanup

lib/socket.ts:773–777  ·  view source on GitHub ↗

* Makes the socket leave all the rooms it was part of and prevents it from joining any other room * * @private

()

Source from the content-addressed store, hash-verified

771 * @private
772 */
773 _cleanup() {
774 this.leaveAll();
775 this.nsp._remove(this);
776 this.join = noop;
777 }
778
779 /**
780 * Produces an `error` packet.

Callers 2

_oncloseMethod · 0.95
_addMethod · 0.80

Calls 2

leaveAllMethod · 0.95
_removeMethod · 0.45

Tested by

no test coverage detected