()
| 8625 | if (!dispatcher) { |
| 8626 | this[kNeedDrain] = true; |
| 8627 | this[kQueue].push({ opts, handler }); |
| 8628 | this[kQueued]++; |
| 8629 | } else if (!dispatcher.dispatch(opts, handler)) { |
| 8630 | dispatcher[kNeedDrain] = true; |
| 8631 | this[kNeedDrain] = !this[kGetDispatcher](); |
| 8632 | } |
| 8633 | return !this[kNeedDrain]; |
| 8634 | } |
| 8635 | [kAddClient](client) { |
| 8636 | client.on("drain", this[kOnDrain]).on("connect", this[kOnConnect]).on("disconnect", this[kOnDisconnect]).on("connectionError", this[kOnConnectionError]); |
| 8637 | this[kClients].push(client); |
| 8638 | if (this[kNeedDrain]) { |
| 8639 | queueMicrotask(() => { |
| 8640 | if (this[kNeedDrain]) { |
| 8641 | this[kOnDrain](client[kUrl], [this, client]); |
nothing calls this directly
no outgoing calls
no test coverage detected