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

Method _cleanup

packages/socket.io/lib/socket.ts:680–684  ·  packages/socket.io/lib/socket.ts::Socket._cleanup

* 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

678 * @private
679 */
680 _cleanup() {
681 this.leaveAll();
682 this.nsp._remove(this);
683 this.join = noop;
684 }
685
686 /**
687 * Produces an `error` packet.

Callers 3

_oncloseMethod · 0.95
_addMethod · 0.45
socket.io.jsFile · 0.45

Calls 2

leaveAllMethod · 0.95
_removeMethod · 0.45

Tested by

no test coverage detected