* Makes the socket leave all the rooms it was part of and prevents it from joining any other room * * @private
()
| 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. |