* Writes a packets payload. * * @param {Array} packets - data packets * @protected
(packets)
| 143 | * @protected |
| 144 | */ |
| 145 | override write(packets) { |
| 146 | this.writable = false; |
| 147 | |
| 148 | encodePayload(packets, (data) => { |
| 149 | this.doWrite(data, () => { |
| 150 | this.writable = true; |
| 151 | this.emitReserved("drain"); |
| 152 | }); |
| 153 | }); |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Generates uri for connection. |
nothing calls this directly
no test coverage detected