* Disconnects from all namespaces and closes transport. * * @private
()
| 173 | * @private |
| 174 | */ |
| 175 | _disconnect(): void { |
| 176 | for (const socket of this.sockets.values()) { |
| 177 | socket.disconnect(); |
| 178 | } |
| 179 | this.sockets.clear(); |
| 180 | this.close(); |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * Removes a socket. Called by each `Socket`. |
no test coverage detected