(x, fn)
| 247 | } |
| 248 | |
| 249 | function write(x, fn) { |
| 250 | chunk = chunk ? Buffer.concat([chunk, x]) : Buffer.from(x) |
| 251 | if (fn || chunk.length >= 1024) |
| 252 | return nextWrite(fn) |
| 253 | nextWriteTimer === null && (nextWriteTimer = setImmediate(nextWrite)) |
| 254 | return true |
| 255 | } |
| 256 | |
| 257 | function nextWrite(fn) { |
| 258 | const x = socket.write(chunk, fn) |
no test coverage detected