* Closes all clients.
()
| 401 | * Closes all clients. |
| 402 | */ |
| 403 | public close() { |
| 404 | debug("closing all open clients"); |
| 405 | for (const sid in this.clients) { |
| 406 | if (hasOwn(this.clients, sid)) { |
| 407 | this.clients[sid].close(true); |
| 408 | } |
| 409 | } |
| 410 | this.cleanup(); |
| 411 | return this; |
| 412 | } |
| 413 | |
| 414 | protected abstract cleanup(); |
| 415 |