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